Documentation

setAuthorization

void public
\Bitrix\Main\Web\HttpClient::setAuthorization(
 string $user,
 string $pass
);

Non-static method sets header field for authentication query (Basic Authorization).

Parameters

ParameterDescriptionVersion
$userLogin.
$passPasswords.

Example



© «Bitrix24», 2001-2024
Up