Board index » delphi » TIdHTTP and Proxy scripts

TIdHTTP and Proxy scripts

Hi,
If you send a request to a HTTP-server using WinInet it can use the settings
that you have done in Internet Explorer. Specifically I am referring to a
setting where you enter a URL pointing to a "Proxy Script" ending with
/proxy.pack. AFAIK the proxy setting is then retrieved from this site, wich
means that the user doesn't know the ProxyServer, ProxyPort, etc that you
need to enter in the TIdHTTP component. Is it possible, with Indy, to
overcome this problem or do I have to use WinInet?

Regards
Lars Bevik

 

Re:TIdHTTP and Proxy scripts


Quote
Lasse Bevik wrote:
> Hi,
> If you send a request to a HTTP-server using WinInet it can use the settings
> that you have done in Internet Explorer. Specifically I am referring to a
> setting where you enter a URL pointing to a "Proxy Script" ending with
> /proxy.pack. AFAIK the proxy setting is then retrieved from this site, wich
> means that the user doesn't know the ProxyServer, ProxyPort, etc that you
> need to enter in the TIdHTTP component. Is it possible, with Indy, to
> overcome this problem or do I have to use WinInet?

I don't know that there is any solution

Grahame

Re:TIdHTTP and Proxy scripts


If it helps, the format of the .pac file is described here.

http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html

I don't think there's any easy way of Indy using this information as the
.pac itself is based on Javascript, but you could probably pick out the most
important commands and 'parse' them yourself to get the data that you need
to populate Indy's proxy related properties.

Quote
"Lasse Bevik" <lars.be...@aileron.se> wrote in message

news:3e797921$1@newsgroups.borland.com...

Quote
> If you send a request to a HTTP-server using WinInet it can use the
settings
> that you have done in Internet Explorer. Specifically I am referring to a
> setting where you enter a URL pointing to a "Proxy Script" ending with
> /proxy.pack. AFAIK the proxy setting is then retrieved from this site,
wich
> means that the user doesn't know the ProxyServer, ProxyPort, etc that you
> need to enter in the TIdHTTP component. Is it possible, with Indy, to
> overcome this problem or do I have to use WinInet?

Re:TIdHTTP and Proxy scripts


Thanks, I'll see if I can parse that information
Lars Bevik

"Simon Devlin" <simon.dev...@kremlin-computing.com> skrev i meddelandet
news:3e7a2efd$4@newsgroups.borland.com...

Quote
> If it helps, the format of the .pac file is described here.

> http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html

> I don't think there's any easy way of Indy using this information as the
> .pac itself is based on Javascript, but you could probably pick out the
most
> important commands and 'parse' them yourself to get the data that you need
> to populate Indy's proxy related properties.

> "Lasse Bevik" <lars.be...@aileron.se> wrote in message
> news:3e797921$1@newsgroups.borland.com...

> > If you send a request to a HTTP-server using WinInet it can use the
> settings
> > that you have done in Internet Explorer. Specifically I am referring to
a
> > setting where you enter a URL pointing to a "Proxy Script" ending with
> > /proxy.pack. AFAIK the proxy setting is then retrieved from this site,
> wich
> > means that the user doesn't know the ProxyServer, ProxyPort, etc that
you
> > need to enter in the TIdHTTP component. Is it possible, with Indy, to
> > overcome this problem or do I have to use WinInet?

Other Threads