# HTTP request help

**URL:** <https://discourse.nodered.org/t/http-request-help/30735>\
**Category:** General\
**Created:** [26 July 2020 17:34 UTC](https://discourse.nodered.org/t/http-request-help/30735 "2020-07-26T17:34:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danfox52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/danfox52/32/17370_2.png) [@danfox52](https://discourse.nodered.org/u/danfox52)\
**Post date:** [26 July 2020 17:34 UTC](https://discourse.nodered.org/t/http-request-help/30735/1 "2020-07-26T17:34:20Z")

</div>

I'm hoping someone can help me with a HTTP request  
I am using iSpy Agent DVR for my cameras. They have an API that lets me control the cameras. If I use the command [http://192.168.4.213:8090/command.cgi?cmd=setProfile&ind=1](http://192.168.4.213:8090/command.cgi?cmd=setProfile&ind=1) directly in my browser, it executes the command properly. However, in NR I can put in a HTTP request and it does nothing. The debug returns an empty payload. Here is the flow. What do I need to change?  
 ![Screenshot 2020-07-26 at 12.56.13 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/5/1576d4157770eb1bfa27549c460571544cdab65b.png)

> **Summary**
>
> `[{"id":"315c41db.5cdf6e","type":"inject","z":"533c47cf.8888e8","name":"Set Profile","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"command.cgi?cmd=setProfile&ind=1","payloadType":"str","x":180,"y":500,"wires":[["e9daca13.fdb898"]]},{"id":"e9daca13.fdb898","type":"http request","z":"533c47cf.8888e8","name":"","method":"PUT","ret":"txt","paytoqs":"body","url":"http://192.168.4.213:8090/","tls":"","persist":false,"proxy":"","authType":"","x":370,"y":500,"wires":[["417801e8.06fb4"]]},{"id":"417801e8.06fb4","type":"debug","z":"533c47cf.8888e8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":530,"y":500,"wires":[]}]`

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 July 2020 17:45 UTC](https://discourse.nodered.org/t/http-request-help/30735/2 "2020-07-26T17:45:26Z")

</div>

Try putting the whole URL in `url` or use mustache in the URL e.g. `http://192.168.4.213:8090/{{payload}}`

---

<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:** [24 September 2020 18:10 UTC](https://discourse.nodered.org/t/http-request-help/30735/4 "2020-09-24T18:10:23Z")

</div>

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