# Need assistance on HTTP Request node

**URL:** <https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [6 January 2023 11:12 UTC](https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291 "2023-01-06T11:12:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmobley](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pmobley](https://discourse.nodered.org/u/pmobley)\
**Post date:** [6 January 2023 11:12 UTC](https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291/1 "2023-01-06T11:12:27Z")

</div>

Hello all,

I have a Max BR1 mini that I would like to communicate with and grab some data. The API works off of a HTTP request (Get and POST) I am sending a POST command to login and I am getting back an error:

"RequestError: Hostname/IP does not match certificate's altnames: IP: 192.168.0.1 is not in the cert's list: : [https://192.168.0.1](https://192.168.0.1)"

I think that I might have the configuration of the HTTP node incorrectly. Here is a screenshot of what I have so far:

 ![Screenshot 2023-01-06 060937](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/c/7ce7d2963a41d1e2cb81faa6b666aaa123c2a51c.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 January 2023 11:24 UTC](https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291/2 "2023-01-06T11:24:27Z")

</div>

Do you need to use https? Perhaps it should be http.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [6 January 2023 13:22 UTC](https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291/3 "2023-01-06T13:22:41Z")

</div>

If it is a self-signed certificate, try it with`msg.rejectUnauthorized` set it to false.

---

<div class="post-metadata">

**Author:** ![pmobley](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pmobley](https://discourse.nodered.org/u/pmobley)\
**Post date:** [6 January 2023 16:44 UTC](https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291/4 "2023-01-06T16:44:05Z")

</div>

Sure, right now I have an inject node injecting this into the HTTP request node

{  
"username": "admin",  
"password": "password"  
}

The `rejectUnauthorized` is a boolean or a text string?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [6 January 2023 17:48 UTC](https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291/5 "2023-01-06T17:48:06Z")

</div>

> [@pmobley](#):
>
> The `rejectUnauthorized` is a boolean or a text string?

Boolean, eg

```auto
{
"username": "admin",
"password": "password",
rejectUnauthorized: false
}

```

---

<div class="post-metadata">

**Author:** ![pmobley](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pmobley](https://discourse.nodered.org/u/pmobley)\
**Post date:** [6 January 2023 21:14 UTC](https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291/6 "2023-01-06T21:14:21Z")

</div>

Thank you I was able to figure it out and on one command, i was able to Post a login. The login is suppose to return a cookie and a status (which I got both) now, when I use a GET command, it fails as a 401. I am not sure what I am forgetting in my setup that could cause this error

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 March 2023 21:15 UTC](https://discourse.nodered.org/t/need-assistance-on-http-request-node/73291/7 "2023-03-07T21:15:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
