Help with Parsing HTTP response from server
I have a server set up to respond to and http request with the following:
Code:
HTTP/1.0 200 OK
From: NuNn-DaDdY
User-Agent: ./server
Server: Local-Host
Date: 13/1/2009
Last-Modified: Fri Feb 13 10:37:07 2009
Content-Type: text/html
Content-Length 8238
<html>
....
</html>
How would I set up my program effectively to parse this response so I know the server returned 200 which means ok,
from=NuNn-DaDdY
User-Agent= ./server
....
Content-Length = 8238
Then, once I find the opening <html> tag, I would like to assign the rest of the response to a variable named body...Thanks!