0

How to use SOCKS 5 proxy with login/password in WebBrowser (IE 8/9)?

In Delphi I tried something like this:

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;

but looks like it works only if proxy doesn't require login/password authentication.

Alex P.
  • 3,697
  • 9
  • 45
  • 110
  • As well as Delphi. Maybe someone who use C# know solution for this problem. For me both languages are suitable. – Alex P. Jun 03 '12 at 09:05

1 Answers1

0

Bsalsa's embedded webbrowser allows you to specify proxy username/password.

whosrdaddy
  • 11,720
  • 4
  • 50
  • 99