Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Proxy with SSL

www.cryer.info
Managed Newsgroup Archive

Proxy with SSL

Subject:Proxy with SSL
Posted by:"Kees Vermeulen" (in..@kever.com)
Date:Fri, 9 Jun 2006 15:19:41

Hello,

I'm trying to talk to an HTTPS server through a proxy (Indy 10.1.5. and
D2006). I have the following code setup:

var
   Http: TIdHttp;
   IOHandler: TIdSSLIOHandlerSocketOpenSSL;
   Proxy: TIdCustomTransparentProxy;

begin
   Http := TidHttp.Create;
   Http.HTTPOptions := Result.HTTPOptions + [hoInProcessAuth];

   IOHandler := TIdSSLIOHandlerSocketOpenSSL.Create(Http);
   Http.IOHandler := IOHandler;
   Proxy := TIdConnectThroughHttpProxy.Create;
   IOHandler.TransparentProxy := Proxy;
   Proxy.Host := <ip-address>;
   Proxy.Port := 8080;

   Http.Get('https://<url>');
end;

When Get() is called, the url is successfully retrieved, however not
through the proxy. What should I do to actually use the proxy server?

Regards,

Kees Vermeulen

Replies:

www.cryer.info
Managed Newsgroup Archive