Previous Page
locale()

Solar_Http_Request_Adapter
setBasicAuth()

Next Page
setCharset()

setBasicAuth()

public Solar_Http_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_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.