Are there any complete examples of using winhttp in C on windows?

jacortinas picture jacortinas · Jul 3, 2010 · Viewed 8.5k times · Source

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.