Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: TIdHTTPServer authentication
| Subject: | Re: TIdHTTPServer authentication |
| Posted by: | "Mathijs" (blab..@bla.hu) |
| Date: | 9 May 2006 02:37:59 |
08 mei 2006, (Remy Lebeau (TeamB)):
> n the OnCommandGet event, when you receive a request from the client
> that needs authenticating, you can set the
> TIdHTTPResponseInfo.AuthRealm property to a non-empty string. That
> forces the server to send a 401 response telling the client that
> authentication credentials are needed a new request.
> TIdHTTPRequestInfo has AuthUsername and AuthPassword properties.
> Those will contain the username/password values if the client sends
> them. You can use those to check your database fields as needed.
Thanks alot! That was what I'm looking for:)
M.
none