URL read in c++

  • Thread starter Thread starter sak
  • Start date Start date

sak

Joined
8/16/09
Messages
84
Points
18
Does anyone have a sample code to read contents of a web page as strings into c++. I want to be able to run the code on visual studio 2010 so don't want to have libraries present only on Linux machines.

Thanks
Sak
 
I think the thing you might want to start with is wget, a tool that downloads a site into a collection of files.
Or alternatively you can build from scratch using serf.

Both are optional part of the Cygwin package and thus workson Windows using it's libraries.
Although the tools diverge for mainstream Unix in some ways they are an indispensable part of being a Windows C++ developer, or indeed a serious developer in any language under Windows.
 
Back
Top Bottom