I need to send a post to a device:
URI:
http://192.168.1.19/A/1/
METHOD: POST
BODY: type=3&name="Light Sensor 1"
I tried job2.PostString("
http://192.168.1.19/A/1/", "type=3&name='Light Sensor 1'")
But i get connection refused.
I tried without password but it won't work
If i send it with a labview program it works:
Wireshark:
POST / HTTP/1.1
Authorization: Basic dGVzdDp0ZXN0
User-Agent: National Instruments LabVIEW
Host: 192.168.1.19
Accept: */*
Content-Length: 24
Content-Type: application/x-www-form-urlencoded
house="A"&unit=1&on=true
What should i use instead of type=3&name='Light Sensor 1'.
I read a post about XML ,do i need to change the string?
Regards
Philip