D7 API documentation
What's New
Modules
Main module in old core
Legacy mode
PSR-18: HTTP Client
Asynchronous queries
CURL
Proxy
Logging
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
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
Parameter | Description | Version |
---|---|---|
$proxyHost | Host name or address (without http://). | |
$proxyPort | Port number. | |
$proxyUser | User name. | |
$proxyPassword | User password. |
Example
© «Bitrix24», 2001-2024
Up