D7 API documentation
Modules
Main module in old core
HttpClient constructor
HttpClient destuctor
disableSslVerification
download
get
getCharset
getContentType
getCookies
getEffectiveUrl
getError
getHeaders
getResult
getStatus
head
post
query
setAuthorization
setCharset
setCompress
setCookies
setHeader
setOutputStream
setProxy
setRedirect
setStreamTimeout
setTimeout
setVersion
waitResponse
post
string|boolean public \Bitrix\Main\Web\HttpClient::post( string $url, array|string|resource $postData = null );
Non-static method executes POST query.
Parameters
Parameter | Description | Version |
---|---|---|
$url | Absolute URL as follows: "http://user:pass@host:port/path/?query" . | |
$postData | POST/PUT query entity. When it is a resource handler, data is read directly from stream. |
Example
© «Bitrix24», 2001-2022
Up