title: How can I read a file sent by POST in C CGI?
body: <p>I've seen multiple posts <a href="https://stackoverflow.com/questions/11166832/how-to-upload-image-file-using-cgi-program-written-in-c-language">all over Internet</a> about different methods, but still I didn't find a proper answer. </p>
  
  <p>The problem: my CGI application is running in an embedded web server, the language I'm using is C, and what I'm trying to do is to process a file sent with a POST request of a form. </p>
  
  <p>The application has been doing everything so far without the use of any libraries, but now I need to add this function and I don't really know which library can I use to do so. And doing it from scratch seems way too complicate for such a simple objective. Maybe not so much for the technical implications, but specially for the possible deviations between browsers.</p>
  
  <p>Any advice about it?</p>
  
  <p><strong>EDIT</strong>: I want to be able to POST files from a browser, and I want to avoid the multipart content type, because it's overhead...</p>