HTTP request help

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 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

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":[]}]

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

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