Resolving Odd 5 Minute Timeout in HttpWebRequest.

Monday, December 7th, 2009

Recently I have been using the HttpWebRequest class a large amount, and we came across a scenario in which I was continually getting a timeout, but I had been setting the Timeout property of the HttpWebRequest to much larger than 5 minutes, but was still receiving the timeout.

In this case we were using an synchronous call through a StreamReader to get back all of the data as simple text: