GPRS connection timeout
-
Hi, I'm looking for a way to stop HttpWebResponse so that it stop looking for GPRS connction.Right now im using HttpWebResponse to automatically connect to GPRS,the problem is it took long for the GPRS to establish.I need to stop the request in about 10 second.Anyone have any suggestion? this is the code that i used to turn on the GPRS connection.... Dim myHttpWebRequest As System.Net.HttpWebRequest = CType(System.Net.WebRequest.Create("http://www.google.com"), System.Net.HttpWebRequest) myHttpWebResponse = CType(myHttpWebRequest.GetResponse(), System.Net.HttpWebResponse) myHttpWebResponse.close thanks for your help....
@h3aR
-
Hi, I'm looking for a way to stop HttpWebResponse so that it stop looking for GPRS connction.Right now im using HttpWebResponse to automatically connect to GPRS,the problem is it took long for the GPRS to establish.I need to stop the request in about 10 second.Anyone have any suggestion? this is the code that i used to turn on the GPRS connection.... Dim myHttpWebRequest As System.Net.HttpWebRequest = CType(System.Net.WebRequest.Create("http://www.google.com"), System.Net.HttpWebRequest) myHttpWebResponse = CType(myHttpWebRequest.GetResponse(), System.Net.HttpWebResponse) myHttpWebResponse.close thanks for your help....
@h3aR
Hi, try setting
HttpWebRequest.Timeout
before callingHttpWebRequest.GetResponse
:)Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.