Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HTTPRIO proxy autoconfig

291 views
Skip to first unread message

Rasmus Wätjen

unread,
Nov 13, 2007, 3:05:16 AM11/13/07
to
Hello all.
I have developed a web service client app which works fine with a direct
internet connection.
It also seems to be able to use Internet Explorer's proxy configuration,
when IE has been configured with a manual proxy setup.
But when Internet Explorer is configured to use a proxy auto-configuration
file (pac-file), it doesn't seem to work.
Does anybody have any hints/tips to help me make this work?

Thank you.

Rasmus

Pedro S

unread,
Nov 13, 2007, 10:51:54 AM11/13/07
to
Try:

HTTPRIO1.HTTPWebNode.Proxy:=proxyName+':'+proxyPort;

Pedro

"Rasmus Wätjen" <r...@remove-this.blueposition.com-also-remove-this> escreveu
na mensagem news:47395aba$1...@newsgroups.borland.com...

Rasmus Wätjen

unread,
Nov 13, 2007, 1:39:17 PM11/13/07
to
"Pedro S" <pst...@psic.pt> wrote:
> HTTPRIO1.HTTPWebNode.Proxy:=proxyName+':'+proxyPort;

I would like to be able to use Windows'/Internet Explorer's ability to parse
the proxy autoconfiguration file
(http://en.wikipedia.org/wiki/Proxy_auto-config).
As far as I can see, HTTPRIO uses WinInet which has some limited proxy
autoconfig support (http://msdn2.microsoft.com/en-us/library/aa383910.aspx).
(By the way: that page says: "WinINet should not be used in a service"!).
So if HTTPRIO uses WinInet, and that has some support for proxy autoconfig,
then the webservices in Delphi should support it. - I just can't get it to
work.

Regards,
Rasmus

Jean-Marie Babet

unread,
Nov 13, 2007, 3:03:15 PM11/13/07
to
Hello,

The WinInet wrapper class (THTTPReqResp/SOAPHTTPTrans.pas) does not utilize
or expose any of the WinInet AutoProxy support. Only the 'proxy' and
'proxybypass' of InternerOpen are exposed. If a proxy is specified we pass
TYPE_PROXY otherwise we pass TYPE_PRECONFIG. The class can also be build in
INDY mode (by defining 'USE_INDY') with equivalent support via
TIDHttp.ProxyParams.

The issue of switching to WinHTTP is on the list of enhancements. I believe
there's a QC already opened?

Cheers,

Bruneau.


Mikael Eriksson

unread,
Nov 14, 2007, 3:05:31 AM11/14/07
to
Jean-Marie Babet skrev:

> The issue of switching to WinHTTP is on the list of enhancements. I believe
> there's a QC already opened?

There is a QC but it's not open.

Report No: 44847 Status: Reported
Add support for WinHTTP to SOAP requests
http://qc.codegear.com/wc/qcmain.aspx?d=44847

/Micke

Jean-Marie Babet

unread,
Nov 14, 2007, 3:10:36 PM11/14/07
to
Hello,

Thank you for the update. It should be opened and pulled into RAID - the
internal tracking tool we use. I'll ask someone in the QA team to pull it.

Cheers,

Bruneau.


0 new messages