need help with content length error

37 views
Skip to first unread message

Paul Travers

unread,
Sep 12, 2013, 4:30:24 AM9/12/13
to sens...@googlegroups.com
Hi all,

I am posting the following from my arduino uno + wifly shield

POST  /events/?sense_key=<my sense key> HTTP/1.1
Content-Type: application/json
Content-Length: 106
\r\n
[{"feed_id":41433, "value" : 25.00},{"feed_id":41434,"value": 702.00},{"feed_id":41435,"value": 119.00}]
\r\n

and in return I get 

HTTP/1.1 411 Length Required
Server: nginx/0.7.65
.... plus other stuff but the above is the meat of the response.

I have counted the content length and it is 104 characters plus 2 for the crlf at the end of the line so the content length looks to be right. Returning 104 for the length gives the same error.  Can anyone see if I have done something stupid that would suggest why I am getting this error? 

Any help gratefully appreciated while I still have hair and sanity.

Reply all
Reply to author
Forward
0 new messages