Wespen Posted January 31, 2003 Posted January 31, 2003 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 Quote
*Gurus* divil Posted January 31, 2003 *Gurus* Posted January 31, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Wespen Posted February 2, 2003 Author Posted February 2, 2003 Can I recive just HTML text, since I'm pharsing text I don't need binary data (images etc.) to bog down my bandwith??? Quote
*Experts* Volte Posted February 2, 2003 *Experts* Posted February 2, 2003 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. Quote
Salat Posted February 21, 2003 Posted February 21, 2003 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... Quote profesjonalne programowanie na zlecenie :)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.