 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
jason Guest
|
Posted: Thu Nov 13, 2003 12:24 am Post subject: Delphi 6/Indy - Help with setting idHTTP proxy properties |
|
|
Hi guys,
I am working with Delphi 6 and Indy components that ship with it.
I am running into problems with networks that use a proxy server.
I detect IE's proxy settings and populate the idHTTP.Request.ProxyServer, and idHTTP.Request.ProxyPort details automatically.
My problem is that I am unsure of how to set the proxy parameters of the idHTTP component when authentication is required. I have looked for documentation regarding this but I haven't found any.
My questions are:
1. what values need to be assigned to the Request.proxyauthenticate propery?
2. if proxy authentication is required, does the idHTTP.HandleRedirects property need to be set to true?
3. Do any other properties need to be set to enable navigation through the proxy server?
3. Does anyone have a sample snippet of code that populates all idHTTP settings required when going through a proxy server?
Thanks in advance. I'd appreciate any light that can be shed on the subject.
|
|
| Back to top |
|
 |
Carl Guest
|
Posted: Sat Dec 13, 2003 4:48 pm Post subject: Re: Delphi 6/Indy - Help with setting idHTTP proxy propertie |
|
|
Hi Jason, I have Delphi 7 but you try this
idHttp1.ProxyParams.ProxyServer:='pc1';
idHttp1.ProxyParams.ProxyPort:=6588;
idHttp1.ProxyParams.ProxyUsername:='user1';
idHttp1.ProxyParams.ProxyPassword:='pas1';
Please How you detect the IE's proxy settings or others browsers proxy ?
Thank you
Carl
"jason" <jason (AT) no-replies (DOT) com> escribió en el mensaje
news:3fb2dd33$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
Hi guys,
I am working with Delphi 6 and Indy components that ship with it.
I am running into problems with networks that use a proxy server.
I detect IE's proxy settings and populate the idHTTP.Request.ProxyServer,
and idHTTP.Request.ProxyPort details automatically.
My problem is that I am unsure of how to set the proxy parameters of the
idHTTP component when authentication is required. I have looked for |
documentation regarding this but I haven't found any.
| Quote: | My questions are:
1. what values need to be assigned to the Request.proxyauthenticate
propery?
2. if proxy authentication is required, does the idHTTP.HandleRedirects
property need to be set to true?
3. Do any other properties need to be set to enable navigation through the
proxy server?
3. Does anyone have a sample snippet of code that populates all idHTTP
settings required when going through a proxy server?
Thanks in advance. I'd appreciate any light that can be shed on the
subject. |
|
|
| Back to top |
|
 |
Carl Guest
|
Posted: Sat Dec 13, 2003 5:38 pm Post subject: Re: Delphi 6/Indy - Help with setting idHTTP proxy propertie |
|
|
Thank to
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet
Settings
Now I detect the IE's proxy settings or others browsers proxy reading
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet
Settings
"Proxy Enable" and "Proxy Server"
http://www.mydesktophelp.com/tips/ie12.htm
thank you to Anil Kumar
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|