C++ reading an remote fie using boost.?
I need to read an remote file using c++,i am tryin开发者_StackOverflowg to read an remote robots.txt file with an example ...
eg
www.google.co.in/robots.txt
This should do it. http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/example/http/client/sync_client.cpp
Take a look at Urdl: http://think-async.com/Urdl/doc/html/index.html Not in boost (at least yet), but written by the author of Boost.Asio Christopher Kohlhoff. So expect the same quality. I have used it, and it did the job easily and very well.
精彩评论