Problem downloading html file

0 views
Skip to first unread message

David Bates

unread,
Dec 23, 2003, 11:24:41 AM12/23/03
to wxUsers List
Heah All,

I'm having some problems downloading a stream from a website..

The code I'm using currently, and I've tried a few ways, is:

wxHTTP *http_file = new wxHTTP;

if (http_file->Connect("http://d-m-s.sourceforge.net")) {
//Connected, get stream
wxInputStream *instream = http_file->GetInputStream("/index.html");
if (!instream) {
wxMessageBox("Could not download file");
}
delete instream;
}

But when the code get's to the "GetInputStream" call, it sends my CPU to 100%
and just locks up..

Has anyone had this problem?

Dave


Reply all
Reply to author
Forward
0 new messages