I'm writing a cgi application in c++ that will run server side in
apache and I'm having a bit of trouble. Basically I'm trying to get
the program to download the html from another site and store that html
in a variable so I can parse it.
I've tried using libcurl, but it exits strangely. And I've tried
running other programs like wget using the system() command, but as far
as I know there is no way to capture the html wget downloads before it
outputs it to a file. I could read it from the file wget creates, but
that would be slow.
I'd appreciate any help I can get. Thanks.