C++: get html page and store it in string

Hello all,

I want to write c++ program which will get html page content, put it in std::string variable, and finally print it to stdout.

Which tool can I use to get this effect?
Is cUrl good solution ?

Thank you for your time.

Or you can get lazy, shell out or popen() to wget to a pipe or file and read() the pipe or file or mmap() the file. It depends on the intensity of the application, ok unless you need more efficiency. The file is nice as you can get the size after.