How to get HTML in C / C ++

How do I get HTML in C or C ++? with connectors. Can you give me some example pls code?

NOTE. I originally closed this but reopened it. On the poster - see:

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

and

Programmatic web page reading

-1


source to share


2 answers


You can use libcURL . Refer to this post: Programmatically Reading a Webpage



+5


source


You don't mention any platform, so I am giving you the answer in Win32.



One easy way to download anything from the internet is URLDownloadToFile

with the option IBindStatusCallback

set to NULL

. To make the function more useful, you need to implement a callback interface.

+1


source







All Articles