Hi all,
I have faced System.Net.HttpWebRequest problem in my developement.
My situation is like here:
I am using threading to retrieve data from server every 3 seconds. When I
failed to retrieve once from server, then the following retrieval also will
not successful anymore. Do anyone know how to solve the this kind of porblem?
My coding is like this:
Dim url as string = "http://lms.n2n.com" 'Example
Dim Req As System.Net.HttpWebRequest
Dim Resp As System.net.HttpWebResponse
Dim Uri As New Uri(url)
Req = System.Net.HttpWebRequest.CreateDefault(Uri)
Req.KeepAlive = False
Resp = Req.GetResponse
...
Everytime it will stuck in Req.GetResponse, then throw the error. Any one
have a good suggestion to solve it ?
Thanks a lot...