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

www.cryer.info
Managed Newsgroup Archive

Re: Proxy with SSL

Subject:Re: Proxy with SSL
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Fri, 9 Jun 2006 11:14:13

"Kees Vermeulen" <info@kever.com> wrote in message
news:448976ee$1@newsgroups.borland.com...

> I'm trying to talk to an HTTPS server through a proxy (Indy
> 10.1.5. and D2006).

Does the proxy support HTTPS to begin with?  Not all do.

>    Proxy: TIdCustomTransparentProxy;

Get rid of that.  TIdHTTP has its own native proxy support.  Use its
ProxyParams property to set that up.

>    Proxy := TIdConnectThroughHttpProxy.Create;

TIdConnectThroughHttpProxy is designed for non-HTTP protocols to be proxied
through an HTTP proxy, since that is a common port that proxy admins allow
to pass through the network.  Do not use it with TIdHTTP.

>    Proxy.Host := <ip-address>;
>    Proxy.Port := 8080;

Use the ProxyParams property instead:

    Http.ProxyParams.ProxyServer := <ip-address>;
    Http.ProxyParams.ProxyPort := 8080;

> When Get() is called, the url is successfully retrieved, however
> not through the proxy.

You did not set the TIdConnectThroughHttpProxy's Enabled property to True.
It is False by default.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive