I thought starting a separate thread would make it easier to consolidate JSON experiences, comments and questions.
As a first post, here's my issue.
I'm sending GET requests via an application. When I tested via a Web browser, this would do it:
http://[HS IP&port]/JSON?request=controldevicebylabel&ref=15&label=Off
So I translated this for use within my application as :
GET /JSON?request=controldevicebylabel&ref=15&label=Off[CrLf]
But this wouldn't work. It took me a few hours to realize that the above statement would need the mandatory HTTP version, so the following did work:
GET /JSON?request=controldevicebylabel&ref=15&label=Off HTTP/1.0[CrLf]
This might be old news for Web programmers, but might be usefull for casual users.
As a first post, here's my issue.
I'm sending GET requests via an application. When I tested via a Web browser, this would do it:
http://[HS IP&port]/JSON?request=controldevicebylabel&ref=15&label=Off
So I translated this for use within my application as :
GET /JSON?request=controldevicebylabel&ref=15&label=Off[CrLf]
But this wouldn't work. It took me a few hours to realize that the above statement would need the mandatory HTTP version, so the following did work:
GET /JSON?request=controldevicebylabel&ref=15&label=Off HTTP/1.0[CrLf]
This might be old news for Web programmers, but might be usefull for casual users.
Comment