Solar_Http_Request_Adapter_Stream::setBasicAuth()

public Solar_Http_Request_Adapter Solar_Http_Request_Adapter_Stream::setBasicAuth ( string $handle , string $passwd )

Sets "Basic" authorization credentials.

Inherited from Solar_Http_Request_Adapter.

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.



Local