BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to do??

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
jason
Guest





PostPosted: Tue Mar 02, 2004 10:58 pm    Post subject: How to do?? Reply with quote




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





PostPosted: Wed Mar 03, 2004 1:54 am    Post subject: Re: How to do?? Reply with quote




"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





PostPosted: Wed Mar 03, 2004 4:36 am    Post subject: Re: How to do?? Reply with quote




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





PostPosted: Wed Mar 03, 2004 6:36 am    Post subject: Re: How to do?? Reply with quote

"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





PostPosted: Wed Mar 03, 2004 6:37 am    Post subject: Re: How to do?? Reply with quote


Gambit,

Quote:
idHTTP1.ProxyParams.Authentication := TIdSSPINTLMAuthentication.Create;

Thanks, 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.
Jason.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.