Method Protocols.HTTP.Authentication.make_authenticator()
- Method
make_authenticator
Clientmake_authenticator(string|array(string)hdrs,stringuser,stringpassword,void|stringrealm)- 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.