title: Remote Server returned an error: (407) Proxy Authentication Required
body: <p>I am trying to open a url from my winforms application and i am getting "407 Proxy Authentication Required" error. I am able to open a sample application that was deployed on IIS in my machine. but if i try to access any other URL getting this error. 
  Here is the source code. Any suggestions please.</p>
  
  <pre><code>string url = "http://google.co.in";
  
  
  HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
  HttpWebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultCredentials;
  request.Method = "POST";
  
  HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  
  Console.WriteLine(response.StatusDescription);
  
  Stream dataStream = response.GetResponseStream();
  
  StreamReader reader = new StreamReader(dataStream);
  
  string responseFromServer = reader.ReadToEnd();
  
  Console.WriteLine(responseFromServer);
  MessageBox.Show(responseFromServer);
  
  reader.Close();
  dataStream.Close();
  response.Close();
  </code></pre>