title: How to parse HTTP requests from a C based web server
body: <p>I have a programming project where I have to create a multithreaded web server which handles HTTP requests.</p>
  
  <p>I just learned socket programming and I got a client and a server running. I wanted to know what the best method would be for parsing the HTTP request headers. I saw this: <a href="https://stackoverflow.com/questions/15179409/how-to-parse-http-request-in-c">how to parse http request in c++</a> a few minutes back. But I would rather not shift to C++ at this point. So how should one go about parsing an HTTP request in C?</p>