🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdHTTP and Windows Authentication

#445
From: Aladin J.
Date: Wed, 13 Feb 2008 03:14
46 lines
2236 bytes
Hi Gambit,

Thanks for your help.

But when I call

http->Request->Authentication = new TIdNTLMAuthentication();

It still found the error "Operation aborted." in Exception (ex.Message) 
after I have try/catch

try {
http->Request->Authentication = new TIdNTLMAuthentication();
}
catch (ex as Exception) {
  ' Error Found in ex.Message()
}


Aladin

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:47b1d8a6$1@newsgroups.borland.com...
>
> "Aladin J." <j_aladin@hotmail.com> wrote in message 
> news:47b19477@newsgroups.borland.com...
>
>> I try to use as followinng code but it generates error after I create 
>> variable "IdNTLMAuthentication":
>>
>> The error is "Operation aborted".
>
> On which line exactly?
>
>> IdNTLMAuthentication->Username = "user";
>> IdNTLMAuthentication->Password = "password";
>
> Don't do that.  Use TIdHTTP's properties instead:
>
>    http->Request->Authentication = new TIdNTLMAuthentication();
>    http->Request->Username = "user";
>    http->Request->Password = "password";
>
>
> Gambit
> 
Technical Details
Message-ID: <47b2604f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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> <47b19477@newsgroups.borland.com> <47b1d8a6$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> <47b19477@newsgroups.borland.com> <47b1d8a6$1@newsgroups.borland.com>
Subject: Re: TIdHTTP and Windows Authentication
Date: Wed, 13 Feb 2008 10:14:31 +0700
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 202.57.178.143
Message-ID: <47b2604f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1202872399 202.57.178.143 (12 Feb 2008 19:13:19 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail