title: How to AutoDetect/Use IE proxy settings in .net HttpWebRequest
body: <p>Is it possible to detect/reuse those settings ?</p>
  
  <p>How ?</p>
  
  <p>The exception i'm getting is
  This is the exception while connecting to <a href="http://www.google.com" rel="noreferrer">http://www.google.com</a></p>
  
  <pre><code>System.Net.WebException: Unable to connect to the remote server ---&gt;
    System.Net.Sockets.SocketException: A connection attempt failed because the
    connected party did not properly respond after a period of time, or established
    connection failed because connected host has failed to respond 66.102.1.99:80
  
    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, 
       SocketAddress socketAddress)
    at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,
       Socket s4, Socket s6, Socket&amp; socket, IPAddress&amp; address,
       ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout,
       Exception&amp; exception)
    --- End of inner exception stack trace ---
    at System.Net.HttpWebRequest.GetResponse()
    at mvcTest.MvcApplication.Application_Start() in
       C:\\home\\test\\Application1\\Application1\\Program.cs:line 33"
  </code></pre>