A
aaronfude
Hi,
I'm running the following code to read a URL into a string. When the
url is offline, it times out after about 10 seconds regardless of what
I set myRequest.Timeout to.
Any suggestions?
WebRequest myRequest = WebRequest.Create (inURL);
WebResponse myResponse = myRequest.GetResponse();
myRequest.Timeout = 1000;
Stream myStream = myResponse.GetResponseStream ();
StreamReader myReader = new StreamReader (myStream);
string s = myReader.ReadToEnd();
Many thanks in advance.
Aaron Fude
I'm running the following code to read a URL into a string. When the
url is offline, it times out after about 10 seconds regardless of what
I set myRequest.Timeout to.
Any suggestions?
WebRequest myRequest = WebRequest.Create (inURL);
WebResponse myResponse = myRequest.GetResponse();
myRequest.Timeout = 1000;
Stream myStream = myResponse.GetResponseStream ();
StreamReader myReader = new StreamReader (myStream);
string s = myReader.ReadToEnd();
Many thanks in advance.
Aaron Fude