tags:

views:

72

answers:

2

Hello, I need to read an remote file using c++,i am trying to read an remote robots.txt file with an example ...

eg

www.google.co.in/robots.txt
+1  A: 

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.

usta
ya i found it was usefull but i struck in istalling it... if i run bjam`/usr/share/boost-build/build/project.jam:270: in find-jamfile from module projecterror: Unable to load Jamfile.error: Could not find a Jamfile in directory '/usr/include/boost'.error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2 [Jj]amfile [Jj]amfile.jam'.`
raj
Where have you run bjam from? It should be run in urdl-0.1/build directory.
usta
raj@raj-laptop:~/Desktop/urdl-0.1/build$ bjamerror: Unable to find file or target namederror: '/boost/date_time//boost_date_time'error: referred from project aterror: '.'
raj
Create a file ~/Desktop/jamroot with the following content (without quotes): "use-project /boost : /path/to/boost ;", where /path/to/boost is the path of the boost's root directory (that is the directory which contains the top-level Jamroot of boost package). I don't know if and how it's possible to make it work with system-preinstalled boost. If the latter isn't possible you might want to download and untar boost yourself, then use the produced directory in place of '/path/to/boost' in ~/Desktop/jamroot .
usta