title: Connect to SOCKS proxy that requires authentication
body: <p>I'm using Fiddler Core in my project and have had success routing requests through a SOCKS proxy that does not require authentication.</p>
  
  <pre><code>oS["x-OverrideGateway"] = string.Format("socks={0}:{1}", ProxyHost, ProxyPort);
  </code></pre>
  
  <p>Now I'm trying to connect to a SOCKS proxy that requires authentication. I've tried adding the below, per this non-SOCKS guide: <a href="http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/AuthenticateWithCBT" rel="nofollow" title="Authenticate With CBT">Authenticate With CBT</a>.</p>
  
  <pre><code>oS["X-AutoAuth"] = Auth;
  </code></pre>
  
  <p>Where <code>Auth</code> is a string containing the credentials in the form <code>username:password</code>. But the connection always fails with a Bad Gateway exception.  I've been successful connecting to the same SOCKS proxy using <code>curl</code> and following it's guidelines for an authenticated SOCKS proxy.</p>
  
  <p>After <code>X-AutoAuth</code> didn't work I reflected some of the code and found that this authentication mechanism is not used for SOCKS.</p>