Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: cookie_jarChapter 17
The LWP Library
Next: Reference: env_proxy
 

credentials

 $ua->credentials(netloc, realm, uname, pass)

Uses the given username and password for authentication at the given network location and realm. This method sets the parameters for either the WWW-Authenticate or Proxy-Authenticate headers in a request. The get_basic_credentials method is called by request to retrieve the username and passwords, if they exist. The arguments are: .S1 Arguments

netloc

The network location (usually a URL string) to which the username and password apply.

realm

The name of the server-defined range of URLs that this data applies to.

uname

The username for authentication.

pass

The password for authentication. By default, the password will be transmitted with MIME base-64 encoding.


Previous: Reference: cookie_jarPerl in a NutshellNext: Reference: env_proxy
Reference: cookie_jarBook IndexReference: env_proxy