title: Delphi/C#: WebBrowser socks5 proxy (with username/password auth)
body: <p>How to use SOCKS 5 proxy with login/password in WebBrowser (IE 8/9)? </p>
  
  <p>In Delphi I tried something like this:</p>
  
  <pre><code>var
    PIInfo: PInternetProxyInfo;
  begin
    New(PIInfo);
    PIInfo^.dwAccessType := INTERNET_OPEN_TYPE_PROXY;
    PIInfo^.lpszProxy := PChar('socks=127.0.0.1:1080');
    PIInfo^.lpszProxyBypass := PChar('');
    UrlMkSetSessionOption(INTERNET_OPTION_PROXY, piinfo, SizeOf(Internet_Proxy_Info), 0);
    Dispose(PIInfo);
    WebBrowser1.Navigate('http://www.google.com');
  end;
  </code></pre>
  
  <p>but looks like it works only if proxy doesn't require login/password authentication. </p>