I posted just before about checking NT passwords, only, thats kinda
irrelevant at the moment as it seems I can't even get my DelphiCGI
application to prompt for a user/pass :(
Seems theres a bug in the CGIApp.pas file (found it mentioned under the
Delphi Bug List). Only, my attempts to use the patch they provided
(modifying CGIApp.pas) doesn't work either. Grrr :( This sucks....
The code I'm now using is:
begin
response.Realm := 'My Realm';
response.WWWAuthenticate := 'Basic';
response.content := 'You hit cancel.';
end;
with my original being:
begin
response.WWWAuthenticate := 'Basic Realm = "My Realm"';
response.content := 'You hit cancel.';
end;
Anyone how what I should do to get this working? All I do in my PHP is:
if (!isset($PHP_AUTH_USER))
{
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Text to send if user hits Cancel button\n";
exit;
}
Mark
--
There are exceptions, I'm sure, but the Windows 2000 on-line community
seems to have, in general, the moral and spiritual qualities of your
average porn site. (c) Bryan Pfaffenberger, Linux Journal, Jan 2001.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"