Documentation

setProxy

void public
\Bitrix\Main\Web\HttpClient::setProxy(
 string $proxyHost,
 null|integer $proxyPort = null,
 null|string $proxyUser = null,
 null|string $proxyPassword = null
);

Non-static method sets HTTP proxies for query.

Parameters

ParameterDescriptionVersion
$proxyHostHost name or address (without http://).
$proxyPortPort number.
$proxyUserUser name.
$proxyPasswordUser password.

Example



© «Bitrix24», 2001-2022
Up