🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdHTTP and Windows Authentication

#438
From: Aladin J.
Date: Fri, 08 Feb 2008 03:14
46 lines
2083 bytes
I am using Incdy 9.0.18.

I try 2 things as followings but they don't work.

1. By using
    http->Request->Username = "username";
    http->Request->Password = "password";

2. By Using
http->OnAuthorization = MyHandler;
++++
void __fastcall MyHandler(TObject *Sender, TIdAuthentication 
*Authentication, bool &Handled)
{
  Authentication->Username = "username";
  Authentication->Password = "password";

  Handled = true;
}

Anyway, if I change website on IIS to Basic Authentication, ther work.

But when I use Windows Authentication, error 401 found.


Aladin

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:47ab4352$1@newsgroups.borland.com...
>
> "Aladin J." <j_aladin@hotmail.com> wrote in message 
> news:47ab27fc@newsgroups.borland.com...
>
>> I am using Indy 9.0.
>
> Which build number, though?
>
>> I have a job which needs to get HTTP via Internet and some
>> website has Windows Authentication. How can I solved
>> the problem.
>
> By "Windows Authentication", are you referring to NTLM?
>
>
> Gambit
> 
Technical Details
Message-ID: <47abc8cd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!194.134.4.77.MISMATCH!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>

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>
Subject: Re: TIdHTTP and Windows Authentication
Date: Fri, 8 Feb 2008 10:14:24 +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: <47abc8cd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1202440397 202.57.178.143 (7 Feb 2008 19:13:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!194.134.4.77.MISMATCH!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