RESTful Web Service API - Write (PUT)
Posted: Sun Mar 06, 2016 3:56 pm
I'm trying to read and write Tag values from an external program using the RESTful Web Service API.
I have managed to get the read part to work, but not the Write!
What I can see my program is sending the PUT call as described in the Reference Manual, but all the response I get is
The request looks like this (from Fiddler)
Any ideas on what is wrong and how to fix it?
// Anders
I have managed to get the read part to work, but not the Write!
What I can see my program is sending the PUT call as described in the Reference Manual, but all the response I get is
Code: Select all
{"Code":404,"Message":"Resource not found"}
Code: Select all
PUT http://192.168.1.10/tags/laserLayout HTTP/1.1
Accept: application/json
User-Agent: RestSharp/105.2.3.0
Content-Type: application/json
Host: 192.168.1.10
Cookie: SID=866c831203
Content-Length: 36
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
{"name":"laserLayout","value":"222"}
// Anders