| View previous topic :: View next topic |
| Author |
Message |
jason Guest
|
Posted: Tue Mar 02, 2004 10:58 pm Post subject: How to do?? |
|
|
I want to force the proxy authentication type before I attempt to connect to a proxy server with idHTTP component.
I can set Basic authentication, but I cannot see how to preset NTLM authentication??
I can see the property TidHTTP.ProxyParams.Authentication but I do not know how to assign TIdSSPINTLMAuthentication to it??
Please help.
Cheers,
Jason.
set idHTTP authentication to NTLM before idHTTP.Get(aWebPage)
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Mar 03, 2004 1:54 am Post subject: Re: How to do?? |
|
|
"jason" <jason (AT) sportschanbara (DOT) removethis.com.au> wrote
| Quote: | I want to force the proxy authentication type before I
attempt to connect to a proxy server with idHTTP
component.
|
Assign the ProxyParams.Authentication property prior to calling Get/Post().
| Quote: | I can see the property TidHTTP.ProxyParams.Authentication but I do not
know how to assign TIdSSPINTLMAuthentication to it?? |
idHTTP1.ProxyParams.Authentication := TIdSSPINTLMAuthentication;
Gambit
|
|
| Back to top |
|
 |
jason Guest
|
Posted: Wed Mar 03, 2004 4:36 am Post subject: Re: How to do?? |
|
|
Gambit,
| Quote: | idHTTP1.ProxyParams.Authentication := TIdSSPINTLMAuthentication;
|
Doesn't work as idHTTP1.ProxyParams.Authentication is of type TidAuthentication, whereas TidSSPINTLMAuthentication is a class reference.
I get an "incompatable types TidAuthentication and Class reference" error.
However, if I change it to idHTTP1.ProxyParams.Authentication := TIdSSPINTLMAuthentication.Create; it compiles.
But.....same problems occurred. Check out my latest post titled
"Re: Do I still need to set handled to true??"
http://newsgroups.borland.com/cgi-bin/dnewsweb?cmd=article&group=borland.public.delphi.internet.winsock&item=56929&utag=
for details on the problems occurring.
Thanks,
jason.
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote:
| Quote: |
"jason" <jason (AT) sportschanbara (DOT) removethis.com.au> wrote in message
news:404511a8$1 (AT) newsgroups (DOT) borland.com...
I want to force the proxy authentication type before I
attempt to connect to a proxy server with idHTTP
component.
Assign the ProxyParams.Authentication property prior to calling Get/Post().
I can see the property TidHTTP.ProxyParams.Authentication but I do not
know how to assign TIdSSPINTLMAuthentication to it??
idHTTP1.ProxyParams.Authentication := TIdSSPINTLMAuthentication;
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Mar 03, 2004 6:36 am Post subject: Re: How to do?? |
|
|
"jason" <jason (AT) sportschanbara (DOT) removethis.com.au> wrote
| Quote: | Doesn't work as idHTTP1.ProxyParams.Authentication is
of type TidAuthentication, whereas TidSSPINTLMAuthentication
is a class reference.
|
idHTTP1.ProxyParams.Authentication := TIdSSPINTLMAuthentication.Create;
Gambit
|
|
| Back to top |
|
 |
jason Guest
|
|
| Back to top |
|
 |
|