Method Protocols.HTTP.Authentication.make_authenticator()
- Method
make_authenticator
Client
make_authenticator(string
|array
(string
)hdrs
,string
user
,string
password
,void
|string
realm
)- Description
Create an authenticator for a server responding with the given HTTP authentication header. Currently only works for one realm.
- Parameter
hdrs
The WWW-Authenticate HTTP header or headers.
- Parameter
user
The username to use.
- Parameter
password
The plaintext password.
- Parameter
realm
Optionally the realm the user and password is valid in. If omitted, the authentication will happen in whatever realm the server is presenting.