Documentation

query

boolean public
\Bitrix\Main\Web\HttpClient::query(
 string $method,
 string $url,
 array|string|resource $entityBody = null
);

Non-static method executes HTTP query.

Parameters

ParameterDescriptionVersion
$methodHTTP method (GET, POST and etc.). Important: must be in uppercase.
$urlAbsolute URL as follows: "http://user:pass@host:port/path/?query".
$entityBodyPOST/PUT query entity. When it is a resource handler, the data is read directly from stream.

Examples



© «Bitrix24», 2001-2024
Up