🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #443

Re: TIdHTTP and Windows Authentication

#443
From: Aladin J.
Date: Tue, 12 Feb 2008 12:44
43 lines
2527 bytes
I try to use as followinng code but it generates error after I create 
variable "IdNTLMAuthentication":

The error is "Operation aborted".

Where am I wrong?

+++++

TIdNTLMAuthentication *IdNTLMAuthentication = new TIdNTLMAuthentication();

// Generates error "Operation aborted"

IdNTLMAuthentication->Username = "user";
IdNTLMAuthentication->Password = "password";
http->Request->Authentication = IdNTLMAuthentication;

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:47b08ae4$1@newsgroups.borland.com...
>
> "Aladin J." <j_aladin@hotmail.com> wrote in message 
> news:47abc8cd@newsgroups.borland.com...
>
>> I try 2 things as followings but they don't work.
>
> To use an Authentication scheme with TIdHTTP, one of the following things 
> must be done:
>
> 1) register the desired TIdAuthentication... classes via the 
> RegisterAuthenticationMethod() function at program startup.  This allows 
> TIdHTTP to select auth schemes automatically.
>
> 2) use the OnSelectAuthorization event to create a suitable 
> TIdAuthentication... object instance for one of the auth schemes that the 
> server supports (provided in the AuthInfo parameter of the event handler)
>
> 3) if you know the exact auth scheme that the server will be using ahead 
> of time, you can assign a suitable TIdAuthentication... object instance to 
> the Request->Authentication property before sending a request.
>
>
> Gambit
> 
Technical Details
Message-ID: <47b19477@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47ab27fc@newsgroups.borland.com> <47ab4352$1@newsgroups.borland.com> <47abc8cd@newsgroups.borland.com> <47b08ae4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ecad3022b25c513d
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Aladin J." <j_aladin@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <47ab27fc@newsgroups.borland.com> <47ab4352$1@newsgroups.borland.com> <47abc8cd@newsgroups.borland.com> <47b08ae4$1@newsgroups.borland.com>
Subject: Re: TIdHTTP and Windows Authentication
Date: Tue, 12 Feb 2008 19:44:47 +0700
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 202.57.178.143
Message-ID: <47b19477@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1202820215 202.57.178.143 (12 Feb 2008 04:43:35 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail