6

I can find tons of examples in C++, but nothing that's written in just C. I am trying to connect to an http server, download the returned data, and then save it to a file. Is there a better way to do it on Windows? Should I not be using WinHttp or WinInet? Windows documentation for C seems to be extremely lacking on the internet. Thank you for your help.

jacortinas
  • 313
  • 3
  • 8
  • 3
    Um, the entire Windows API is written in C and extensively documented at http://msdn.microsoft.com/en-gb/library/ee663300%28VS.85%29.aspx –  Jul 03 '10 at 17:40

1 Answers1

4

http://www.codeguru.com/cpp/i-n/internet/http/article.php/c6237
also this looks good and in C
http://msdn.microsoft.com/en-us/library/aa384270(v=VS.85).aspx#Downloading_resource
This question has also been asked and answered here
How to download a file with WinHTTP in C/C++?

Community
  • 1
  • 1
Romain Hippeau
  • 24,113
  • 5
  • 60
  • 79