title: How to download a file from a URL in C, as a browser would?
body: <p>I want to download a file from a URL, this one : <a href="http://download.finance.yahoo/d/quotes.csv?s=YHOO+GOOG+MSFT&amp;f=sl1d1t1c1hgvbap2" rel="nofollow">http://download.finance.yahoo/d/quotes.csv?s=YHOO+GOOG+MSFT&amp;f=sl1d1t1c1hgvbap2</a>
  When i go on my browser and input this URL in my browser, the file is automatically downloaded as it should.
  What I want is to download this file without going on my browser using a program in C language, I need this type of information for a financial project.
  I tried to download the file using libcurl but libcurl downloads the HTML page corresponding to this URL  which is empty of course because the only thing this URL does is start a download.
  I suppose this URL is the way int a HTTP server of some kind but I am completely lost as to how to get this file.</p>
  
  <p>Thank you all in advance for your time and help, please if you can help by explaining or even better with C code feel free to do so and don't be afraid to be too precise.</p>