Solar_Http_Request_Adapter::setBasicAuth()
public
Solar_Http_Request_Adapter
Solar_Http_Request_Adapter::setBasicAuth
( string $handle
, string $passwd
)
Sets "Basic" authorization credentials.
Parameters
(string)
$handle
: The username or login name.(string)
$passwd
: The associated password for the handle.
Returns
(Solar_Http_Request_Adapter) This adapter object.
Description
Sets "Basic" authorization credentials.
Note that username handles may not have ':' in them.
If both the handle and password are empty, turns off authorization.