HttpWebRequest.AllowAutoRedirect=false can cause timeout?
问题 I need to test around 300 URLs to verify if they lead to actual pages or redirect to some other page. I wrote a simple application in .NET 2.0 to check it, using HttpWebRequest. Here's the code snippet: System.Net.HttpWebRequest wr = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create( url ); System.Net.HttpWebResponse resp = (System.Net.HttpWebResponse)wr.GetResponse(); code = resp.StatusDescription; Code ran fast and wrote to file that all my urls return status 200 OK. Then I