Article View: borland.public.cppbuilder.internet.socket
Article #439TIdHTTP and Windows Authentication (Again)
From: Aladin J.
Date: Sat, 09 Feb 2008 03:26
Date: Sat, 09 Feb 2008 03:26
29 lines
1640 bytes
1640 bytes
I am using Incdy 9.0.18.
I have a job which needs to get HTTP via Internet and some website has
Windows Authentication. How can I solved the problem.
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
Technical Details
Message-ID:
<47ad1d78@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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,762862cfde2354d1,start 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 Subject: TIdHTTP and Windows Authentication (Again) Date: Sat, 9 Feb 2008 10:26:48 +0700 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 58.8.171.45 Message-ID: <47ad1d78@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1202527608 58.8.171.45 (8 Feb 2008 19:26:48 -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