the problem is WebRequest.Create and GetResponse
lets solving this...
request.Proxy = null; using (var response = (HttpWebResponse)request.GetResponse()) { StreamReader stream = new StreamReader(response.GetResponseStream(), System.Text.Encoding.UTF8); string result = stream.ReadToEnd(); stream.Close(); }
first part is proxy to null. ( WebRequest auto detect proxy setting in IE )
Second part is wrapping GetResponse with using
Plus add this little thing :D for connection limit :D
System.Net.ServicePointManager.DefaultConnectionLimit = 1000; //or some other number > 4And maybe you need this one below to... ( I add here just in case ) :D
System.Net.ServicePointManager.Expect100Continue = false;