Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: HTTP username/password
| Subject: | Re: HTTP username/password |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 26 Feb 2008 18:32:20 |
"E Sterrett" <e_sterrett@mailinator.com> wrote in message
news:47c1d675$1@newsgroups.borland.com...
> I have a very basic Indy 10 Http server (see below).
>
> What would be the simplest way to add authentication.
TIdHTTPServer only supports BASIC authorization at this time. That support
is built-in for you. In the OnCommandGet event, the TIdHTTPRequestInfo
object has AuthUsername and AuthPassword properties that will be filled in
when the client sends authorization credentials to your server.
Gambiut