G
Guest
Dear All
I am writing an application which fetches Web pages. I have been using the System.Net.HttpWebRequest.Timeout property to specify how long a request made with the GetResponse() method should wait for an answer. Nevertheless, my impression is that it does not work. No matter which value I set for the Timeout property, my requests may hang indefinitely when fetching certain Web pages
I have noticed that there is a new property called HttpWebRequest.ReadWriteTimeout. Would this new property be more appropriate to use in my case
Thank you
Marco
I am writing an application which fetches Web pages. I have been using the System.Net.HttpWebRequest.Timeout property to specify how long a request made with the GetResponse() method should wait for an answer. Nevertheless, my impression is that it does not work. No matter which value I set for the Timeout property, my requests may hang indefinitely when fetching certain Web pages
I have noticed that there is a new property called HttpWebRequest.ReadWriteTimeout. Would this new property be more appropriate to use in my case
Thank you
Marco