String manipulation of a http response using Arduino

I will like to separate into different vars some information from a HTTP response, at the moment I'm just printing to the serial port the raw data, using:

Serial.print((const char*) Ethernet::buffer + off);


And that prints:

HTTP/1.1 200 OK
Date: Wed, 21 Nov 2012 22:47:21 GMT
Server: Apache
Vary: Accept-Encoding
Connection: close
Content-Type: text/html

Temp = 28...


I wonder how can I extract the information I need for later analysis, like the HTTP response code (200), the date, and the value of Temp, how can I extract this values into variables?

-
Parsing HTTP header strings in what looks like C++ seems somewhat remote to electronic design, even if it's on an embedded board. –  Kaz Nov 29 '12 at 2:11
This might be a pure software problem if it were implemented on a more capable platform, but given the extreme resource limitations of an ATMEGA328, especially when running a TCP stack, it may be necessary to code the string parsing with unusual efficiency - ie, using the standard library functions may not be wise. Though if it works and you don't need to do anything else, fine. –  Chris Stratton Dec 19 '12 at 16:39