2:22 pm


Silver
December 31, 2013

According to the API documentation, Status updates and Last Entry in Channel Feed can be requested via POST or GET, but while GET works as expected, POST returns 404.
Below are some TCP streams showing a working GET request and a failing POST request, (where channel 9325 is a public channel). I can provide my Java test cases if required.
Has anyone else encountered this issue, or is everyone just using GET? I'm in the process of setting up a Rails VM to attempt to debug, but I'm a total stranger to Ruby so I don't know how far I'll get.
GET /channels/9235/status.json HTTP/1.1
user-agent: unirest-java/1.1
accept-encoding: gzip
Host: api.thingspeak.com
Connection: Keep-Alive
HTTP/1.1 200 OK
Server: nginx/1.5.7
Date: Tue, 31 Dec 2013 19:04:41 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Status: 200
Cache-Control: max-age=0, private, must-revalidate
X-Rack-Cache: miss
Content-Encoding: gzip
POST /channels/9235/status.json HTTP/1.1
connection: close
user-agent: unirest-java/1.1
accept-encoding: gzip
Content-Length: 0
Host: api.thingspeak.com
HTTP/1.1 404 Not Found
Server: nginx/1.5.7
Date: Tue, 31 Dec 2013 19:04:41 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Status: 404
X-Rack-Cache: invalidate, pass
Content-Encoding: gzip
Most Users Ever Online: 166
Currently Online:
23 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
rw950431: 272
Vinod: 240
piajola: 95
turgo: 70
vespapierre: 63
Adarsh_Murthy: 62
Member Stats:
Guest Posters: 1
Members: 8665
Moderators: 1
Admins: 2
Forum Stats:
Groups: 3
Forums: 14
Topics: 1600
Posts: 5760
Newest Members:
tran, huldacormier, bogart, estebanmateo93, mikewrite, onlinebusinessModerators: cstapels: 460
Administrators: Hans: 405, lee: 457