title: Simple C example of doing an HTTP POST and consuming the response
body: <p>I would like to create a very simple C application that does an HTTP post.  It will take a few parameters, and use these to construct a URL.  I'd just like to do a simple HTTP POST and get the response without the use of curl (the libraries are not and will not be installed on the machine this needs to run).</p>
  
  <p>Pseudo-code:</p>
  
  <ol>
  <li><p>Process 2 args</p></li>
  <li><p>Put args into template URL: <a href="http://api.somesite.com/apikey=ARG1&amp;command=ARG2">http://api.somesite.com/apikey=ARG1&amp;command=ARG2</a></p></li>
  <li><p>Do POST on generated URL</p></li>
  <li><p>Consume response</p></li>
  </ol>
  
  <p>My Google and SO searches haven't yielded anything on this matter.</p>