WebClient with more control???

Wespen

Newcomer
Joined
Jan 13, 2003
Messages
10
Is there any more convinient way to retrive HTML stream than WebClient.

Since I'm on slow connection (56K modem) I often timeout.

Is there any way to retry retriving data ? Like try/catch block ??
Or to extend timeout time??

1 more thing,
With WebClient - do I get only HTML in Response stream or Images and other data too??

Thanks
Igor
 
I'm on a 56k modem and using WebClient to download data works just fine for me, no timeouts.

You can get anything in a response stream, whatever the webserver throws out. This includes binary data.
 
Can I recive just HTML text, since I'm pharsing text I don't need binary data (images etc.) to bog down my bandwith???
 
If you use the DownloadData method on a web address, it will
download the HTML source into a byte array. It won't (at least, it
shouldn't) send out anything but the HTML.
 
what if the requested file is PHP, I'm useing such a code, which download html with no time-out, and does not downoload file adressed with php (time-out is every time) What shell I use then...
 
Back
Top