I'm using the following code to communicate with a site:
Dim webrequest As System.Net.WebRequest = System.Net.WebRequest.Create(strhttp)
webrequest.Proxy = System.Net.WebRequest.DefaultWebProxy
Dim webresponse As System.Net.WebResponse = webrequest.GetResponse()
Dim datastream As System.IO.Stream = webresponse.GetResponseStream
Dim reader As New System.IO.StreamReader(datastream)
Dim responsefromserver As String = reader.ReadToEnd()
When I run the URL through Chrome or Firefox (Windows 7), the return from the remote website is < 1 sec. When I run this code, it takes 12 - 14 seconds for the GetResponse line to return. I also see that it takes 12 - 14 seconds for IE to return a response.
I've searched the forums and tried everything I saw there:
1. set max connections to 10 in config file
2. Set proxy to Nothing
3. Close webresponse
It seems this has something to do with how IE is handling communications, but I haven't been able to track it down.