How do i Download Web Page using C (not with libcurl), OS: Win32
Duplicate of Fetch Web Page in C [closed] and How to fetch HTML in C/C++.
How do i Download Web Page using C (not with libcurl), OS: Win32
Duplicate of Fetch Web Page in C [closed] and How to fetch HTML in C/C++.
To download a web page, you need two things:
For the first item, have a look at the socket API. You need to open a socket, send some data using send(), receive data from the webserver.
For the second item, you need to understand the http protocol.
What you need to do is called "socket communications". For an excellent overview, check out
http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_15.html
http://www.uwo.ca/its/doc/courses/notes/socket/
http://wiki.linuxquestions.org/wiki/Connecting_a_sockets_in_C
That last link is from linuxquestions, but both solutions are completely cross-platform, as opposed to frankodwyer's suggestion of wininet. That last link also does exactly what you want, in that it downloads a web page.