Hi,
I kind of new to the hole threading stuff so bare with me here..
I have a aspx-page that takes some input and makes a reqest:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(string.Format("{0}?{1}", strPostPath, strPostData));
request.Method = "GET";
request.Timeout = 5000; // set 5 sec. timeout
request.ProtocolVersion = HttpVersion.Version11;
try
{
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
/do some with response
}
catch (WebException exce)
{
//Log some stuff
}
The thing is that this function is used ALOT.
Is there any advantage to make every request in a separate thread and exactly how would that look like?
Thx!