How to fetch HTML in C or C++? with Sockets. Can you give me a Example code pls?
NOTE - I originally closed this, but reopened. To the poster - Please see:
https://stackoverflow.com/questions/400688/fetch-web-page-in-c
and
How to fetch HTML in C or C++? with Sockets. Can you give me a Example code pls?
NOTE - I originally closed this, but reopened. To the poster - Please see:
https://stackoverflow.com/questions/400688/fetch-web-page-in-c
and
You're not mentioning any platform, so I give you an answer for Win32.
One simple way to download anything from the Internet is the
URLDownloadToFile
with theIBindStatusCallback
parameter set toNULL
. To make the function more useful, the callback interface needs to be implemented.You may use libcURL. Refer to this post: Programmatically reading a web page