O'Reilly logo

Getting Started with the Internet of Things by Cuno Pfister

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What Pachube Said to Netduino

An HTTP response from Pachube may look like this:

HTTP/1.1 200 OK\r\n
Server: nginx/0.7.65\r\n
Date: Mon, 07 Feb 2011 13:36:55 GMT\r\n
Content-Type: text/plain; charset=utf-8\r\n
Connection: keep-alive\r\n
Set-Cookie: _pachube_app_session=BAh7BjoPc2Vzc2lvbl9...;\r\n
Cache-Control: max-age=0\r\n
Content-Length: 1\r\n
Age: 0\r\n
Vary: Accept-Encoding\r\n

In this response, the first line, known as the status line, is the most important. HTTP defines a number of status codes; status code 200 means that the request was handled successfully. (The most important status codes are given in Chapter 10.) The status code is located between the HTTP version and a plain-text version of the status code. The text version of the status ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required