Hi,
I'm trying to get a bunch of HTML files downloaded from the internet and using HttpWebRequest to do it.
However when I use
WebRequest.Create("http://www.stackoverflow.com/"); WebRequest.GetResponse();
The HttpWebResponse.ContentLength is always -1. I have to show the progress of these pages downloading, in our existing VB6 version we're using the inet control and it reports the progress nicely.
My code is very similar to this:
http://www.geekpedia.com/tutorial179_Creating-a-download-manager-in-Csharp.html
(The 'Download' method that is)
I'm not sure what I'm doing wrong or whether its normal - theres no Content-Length header sent by the web-server. How do we workout the progress in this case?
Thanks,