Ka Extensions

Curl
in component

Simplifies http requests. Optional.

Originally it was created for fetching images from external services but later we extended it with features to make api calls with different.

Table of Contents

Constants

MAX_RESOLVE_ATTEMPTS  = 3

Properties

Methods

encodeURL()  : mixed
flattenFormFields()  : mixed
getFileContentsByUrl()  : mixed
getLastError()  : mixed
getLastFileInfo()  : mixed
parseContentDisposition()  : mixed
request()  : mixed
parseHttpHeader()  : mixed

Constants

MAX_RESOLVE_ATTEMPTS

public mixed MAX_RESOLVE_ATTEMPTS = 3

Properties

$last_file_info

protected mixed $last_file_info = array()

$lastError

protected mixed $lastError = ''

Methods

encodeURL()

public encodeURL(mixed $url) : mixed
Parameters
$url : mixed

flattenFormFields()

public flattenFormFields(array<string|int, mixed> $data[, string $prefix = null ]) : mixed
Parameters
$data : array<string|int, mixed>
$prefix : string = null

getFileContentsByUrl()

public getFileContentsByUrl(mixed $url[, mixed $from = 0 ]) : mixed
Parameters
$url : mixed
$from : mixed = 0

getLastError()

public getLastError() : mixed

getLastFileInfo()

public getLastFileInfo() : mixed

parseContentDisposition()

public parseContentDisposition(mixed $str) : mixed
Parameters
$str : mixed

request()

public request(mixed $url[, mixed $data = array() ][, mixed $options = array() ]) : mixed
Parameters
$url : mixed
$data : mixed = array()
$options : mixed = array()

parseHttpHeader()

protected parseHttpHeader(mixed $header) : mixed
Parameters
$header : mixed

        
On this page

Search results