Zend_Http_Client::setAuth
Set HTTP authentication parameters
$type should be one of the supported types - see the self::AUTH_ constants. To enable authentication: <code> $this->setAuth('shahar', 'secret', Zend_Http_Client::AUTH_BASIC); </code> To disable authentication: <code> $this->setAuth(false); </code>
Signature
public function setAuth(string|false
$user,
[string
$password = '',
[string
$type = self::AUTH_BASIC]] )
Parameters
$user
— object- User name or false disable authentication
$password
— string- Password
$type
— string- Authentication type
Returns
- Zend_Http_Client