🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
1 messages
1 total messages Started by Aladin J. Sat, 09 Feb 2008 03:26
TIdHTTP and Windows Authentication (Again)
#439
Author: Aladin J.
Date: Sat, 09 Feb 2008 03:26
29 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads