WebClient with more control???

Wespen

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

Since Im 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
 
Im 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 Im pharsing text I dont 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 wont (at least, it
shouldnt) send out anything but the HTML.
 
what if the requested file is PHP, Im 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