Method | Description | |
---|---|---|
getHeader ( string $header ) : string | Get response header. | |
setAuthentication ( string $user, string $password, string $type = self::AUTH_TYPE_BASIC ) | Set authentication. | |
setHeaders ( array $headers ) | Set request headers. |
Method | Description | |
---|---|---|
makeAuthentication ( $username, string $password, string $type ) : string | Make/Crypt the authentication value. |
public setHeaders ( array $headers ) | ||
$headers | array | Associative array with $header => $value (value can be an array if it hasn't a single value) |