Today I am asking how to extract the data section from the received buffer in my
recv() in C (not C++).
I just need some suggestions, how would I get
HTTP/1.1 200 OK\r\n Date: Mon, 23 May 2005 22:38:34 GMT\r\n Server: Apache/18.104.22.168 (Unix) (Red-Hat/Linux)\r\n Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT\r\n ETag: "3f80f-1b6-3e1cb03b"\r\n Content-Type: text/html; charset=UTF-8\r\n Content-Length: 131\r\n Connection: close\r\n \r\n <html> <head> <title>An Example Page</title> </head> <body> Hello World, this is a very simple HTML document. </body> </html>
The part of the above header? It is stored in my buffer, I specifically just want to dissect the data (the source code of the page). Any ideas?