Documentation

post

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

Non-static method executes POST query.

Parameters

ParameterDescriptionVersion
$urlAbsolute URL as follows: "http://user:pass@host:port/path/?query".
$postDataPOST/PUT query entity. When it is a resource handler, data is read directly from stream.

Example



© «Bitrix24», 2001-2024
Up