Z
z. f.
Hi,
i have a vb.net windows application that makes HTTP requests with the framework's HttpWebReqeuest object.
i have about 10 different requests that takes between 30 to 500 for the Request.GetResponse function to execute.
this is acceptable.
problem is that for 1 of the 10 urls i request, when i call the
responseBody = reader.ReadToEnd() & ""
it takes about 11.50 seconds (!) to execute and return the responseBody.
for all the resources i request including the misbehaved one, the return content length is between 1000 and 40,000 bytes, and for the misbehaved one 8063 bytes. (should not cause any problems)
the misbehaved request is from a dot.net aspx page.
the request takes about 46 milliseconds to return a 8063 bytes of text/html (not binary)
i have other aspx resources in my list that are behaving OK. for example a 92,470 bytes response takes about 30 milliseconds to execute and for the ReadToEnd another 671 milliseconds.
the reader definition looks like that:
reader = New StreamReader(res.GetResponseStream(), System.Text.Encoding.GetEncoding("utf-8"), True)
i hope someone will have some direction to look for the problem source.
TIA, z.
i have a vb.net windows application that makes HTTP requests with the framework's HttpWebReqeuest object.
i have about 10 different requests that takes between 30 to 500 for the Request.GetResponse function to execute.
this is acceptable.
problem is that for 1 of the 10 urls i request, when i call the
responseBody = reader.ReadToEnd() & ""
it takes about 11.50 seconds (!) to execute and return the responseBody.
for all the resources i request including the misbehaved one, the return content length is between 1000 and 40,000 bytes, and for the misbehaved one 8063 bytes. (should not cause any problems)
the misbehaved request is from a dot.net aspx page.
the request takes about 46 milliseconds to return a 8063 bytes of text/html (not binary)
i have other aspx resources in my list that are behaving OK. for example a 92,470 bytes response takes about 30 milliseconds to execute and for the ReadToEnd another 671 milliseconds.
the reader definition looks like that:
reader = New StreamReader(res.GetResponseStream(), System.Text.Encoding.GetEncoding("utf-8"), True)
i hope someone will have some direction to look for the problem source.
TIA, z.