Posted on: 11/23/2014 7:26:34 AM | Views : 902

Hello all, 
               I have problem, was going to make a HTTPWebRequest. But problem it responses all times, but in some cases it shows error message. I have tired it many ways like in "POST" request and downloadstring etc....
Here is error details
"The request was aborted: The connection was closed unexpectedly."
public static String processHttpRequestForTest(string url) { StringBuilder sb = new StringBuilder(); try { HttpWebRequest request = null; CookieContainer cookieContainer = new CookieContainer(); request = (HttpWebRequest)WebRequest.Create(url); request.CookieContainer = cookieContainer; request.Credentials = CredentialCache.DefaultCredentials; request.Method = "GET"; ...

Go to the complete details ...