tags:

views:

889

answers:

3

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:

http://stackoverflow.com/questions/400688/fetch-web-page-in-c

and

http://stackoverflow.com/questions/389069/programmatically-reading-a-web-page#389074

+1  A: 

This question is pretty similar to http://stackoverflow.com/questions/400688/fetch-web-page-in-c

ChrisW
It's the same guy asking...
cschol
+5  A: 

You may use libcURL. Refer to this post: http://stackoverflow.com/questions/389069/programmatically-reading-a-web-page#389074

m3rLinEz
+1  A: 

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 the IBindStatusCallback parameter set to NULL. To make the function more useful, the callback interface needs to be implemented.

Johann Gerell