title: How to extract data from HTTP header in C?
body: <p>Today I am asking how to extract the data section from the received buffer in my <code>recv()</code> in C (not C++).
  </p>
  
  <p>I just need some suggestions, how would I get</p>
  
  <pre class="lang-none prettyprint-override"><code>HTTP/1.1 200 OK\r\n
  Date: Mon, 23 May 2005 22:38:34 GMT\r\n
  Server: Apache/1.3.3.7 (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
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;An Example Page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    Hello World, this is a very simple HTML document.
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>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?</p>