online variable?

is C++ able to get material from online sources?

like the php code of
1
2
$url = "http://...com";
$data = @file_get_contents($url); 


if not, what sources can I try? Can I try running the console program from a PHP file? (coz im not very good in PHP, needa do some data manip in c++).
Yes, it can... but you probably don't want to do it yourself. (It's messy.)

Your best bet would be to google around and see if anyone has written a little library to do it.
But what what heading should i search on? putting in stuff like "c++ online variable/material" turned up quite deviated results.....

Thanks man, now I have a lead to work on (and an answer to tell my boss XD)

edit: now looking under trumphurst.com's large database of libs...
Last edited on
Ah, sorry, I assumed you knew more than you did... I googled "c++ socket http ftp" to look for libraries and found
http://curl.haxx.se/libcurl/
which looks _very_ nice.

If you know the URL of the file you want, you can open/download/read/etc. it.

Hope this helps.
.. wow even the web domain sounds uber 'h4xx'-ed. hahha

Thanks man, you're my hero.
Last edited on
Topic archived. No new replies allowed.