Constants

Boundary

Boundary = '---------------------------'

Разделитель

BoundaryEnd

BoundaryEnd = '--'

Окончание

Properties

$credentials

$credentials : \Colibri\IO\Request\RequestCredentials

Логины и пароли

Type

\Colibri\IO\Request\RequestCredentials

$target

$target : string

Адрес

Type

string

$method

$method : string

Метод

Type

string

$encryption

$encryption : string

Шифрование

Type

string

$boundary

$boundary : string

Разделитель

Type

string

$timeout

$timeout : integer

Таймаут запроса

Type

integer

$timeout_ms

$timeout_ms : integer

Таймаут в миллисекундах

Type

integer — | false

$async

$async : boolean

Индикатор ассинхронности

Type

boolean

$cookies

$cookies : array

Куки

Type

array

$cookieFile

$cookieFile : string

Файл куки

Type

string

$referer

$referer : string

Реферер

Type

string

$headers

$headers : array

Заголовки

Type

array — | false

$useragent

$useragent : string

UserAgent

Type

string

$sslVerify

$sslVerify : boolean

Проверять сертификат

Type

boolean

Methods

__construct()

__construct(string  $target, string  $method = \Colibri\IO\Request\Type::Get, string  $encryption = \Colibri\IO\Request\Encryption::UrlEncoded, \Colibri\IO\Request\Data  $postData = null, string  $boundary = '') 

Конструктор

Parameters

string $target
string $method
string $encryption
\Colibri\IO\Request\Data $postData
string $boundary

Execute()

Execute(mixed  $postData = null) : \Colibri\IO\Request\Result

Выполняет запрос

Parameters

mixed $postData

Returns

\Colibri\IO\Request\Result

__checkWebRequest()

__checkWebRequest() 

Checks if the curl module loaded

_createMultipartRequestBody()

_createMultipartRequestBody(string  $boundary, mixed  $files) : string

Создает данные запроса типа Multipart/Formdata

Parameters

string $boundary

разделитель

mixed $files

данные

Returns

string

_joinPostData()

_joinPostData() : string

Собирает пост

Returns

string