Posted on: 9/4/2014 3:44:57 PM | Views : 344

I am trying to send http web request using c# code but my iis refusing sending this . I am not able to send any web request from my server.
The piece of code i am trying to acheive the same is-
 HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create("http://www.example.com/getResponse.ashx");             myHttpWebRequest.AllowAutoRedirect = true;             HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();             objStreamStreamReader = new StreamReader(myHttpWebResponse.GetResponseStream());             response = objStreamStreamReader.ReadToEnd();             Response.Write(response);    ...

Go to the complete details ...