web client in C++

I'm looking for an API that allows me to open a URL and get the contents back for parsing, the equivalent of perl:

my $content = get("http://www.blah.org/");

thanks!
LVL 11
dbkrugerAsked:
Who is Participating?
 
Infinity08Commented:
check out libcurl !!

http://curl.haxx.se/
0
 
dbkrugerAuthor Commented:
the API should preferably support pretending to be a browser, so that I can hide the fact that this is a robot as opposed to a client, control timeouts, etc.
0
 
HemanthaKumarCommented:
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
Dariusz DziaraProgrammerCommented:
Maybe

URLOpenBlockingStream() API function

or maybe not API but ActiveX control

"Microsoft Web Browser"

0
 
dbkrugerAuthor Commented:
Open Source only, no MS <expletive deleted> please.
Sorry, I should have said that!
0
 
dbkrugerAuthor Commented:
Open Source only, no MS <expletive deleted> please.
Sorry, I should have said that!
0
 
jkrCommented:
If you need a platform independant solution, check out 'cURL' (http://curl.planetmirror.com/) and e.g. the sample at http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c (more at http://curl.planetmirror.com/libcurl/c/libcurl-tutorial.html)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.