M
Mahernoz
Hi Friends,
I have this code in a C# console application which calls a URL on my
website(Asp.net/C#) with Querystrings. (I have also tried without
querystrings).
The problem is my program gets hanged. Even no error message is
displayed.
HttpWebRequest req =
(HttpWebRequest)WebRequest.Create(CaptureURLForScheduler +
strQueryString);
req.Method = "POST";
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] byte1 = encoding.GetBytes(strQueryString);
req.ContentLength = byte1.Length;
//This line hangs my program
HttpWebResponse res = (HttpWebResponse)req.GetResponse();
//This line hangs my program
Can you tell me what's going on and how can i fix this?
Regards,
Mahernoz
I have this code in a C# console application which calls a URL on my
website(Asp.net/C#) with Querystrings. (I have also tried without
querystrings).
The problem is my program gets hanged. Even no error message is
displayed.
HttpWebRequest req =
(HttpWebRequest)WebRequest.Create(CaptureURLForScheduler +
strQueryString);
req.Method = "POST";
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] byte1 = encoding.GetBytes(strQueryString);
req.ContentLength = byte1.Length;
//This line hangs my program
HttpWebResponse res = (HttpWebResponse)req.GetResponse();
//This line hangs my program
Can you tell me what's going on and how can i fix this?
Regards,
Mahernoz