Documentation

Class Phalcon\Http\Client\Adapter\Curl

extends abstract class Phalcon\Http\Client\Adapter

implements Phalcon\Http\Client\AdapterInterface

Source on GitHub

Constants

string VERSION

string AUTH_TYPE_ANY

string AUTH_TYPE_BASIC

string AUTH_TYPE_DIGEST

Methods

public __construct (unknown $uri, unknown $method)

...

protected sendInternal ()

...

public Phalcon\Http\Client\Adapter setUserAgent (string $useragent) inherited from Phalcon\Http\Client\Adapter

Sets the value of the userAgent property

public Phalcon\Http\Client\Adapter setAuth (string $username, string $password, [string $authtype], [array $digest], [string $entityBody]) inherited from Phalcon\Http\Client\Adapter

Set authentication credential

public Phalcon\Http\Client\Adapter setHeader (string $name, string $value) inherited from Phalcon\Http\Client\Adapter

Set header

public Phalcon\Http\Client\Adapter setHeaders (array $headers) inherited from Phalcon\Http\Client\Adapter

Set headers

public Phalcon\Http\Client\Adapter setData (array|string $data, [unknown $type]) inherited from Phalcon\Http\Client\Adapter

Set data

public Phalcon\Http\Client\Adapter setFile () inherited from Phalcon\Http\Client\Adapter

Set send file

public Phalcon\Http\Client\Adapter setFiles (array|string $files) inherited from Phalcon\Http\Client\Adapter

Set send files

public string getPath () inherited from Phalcon\Http\Client\Adapter

Retrieve the URI path

public Phalcon\Http\Client\Response get ([string $uri], [string $data], [unknown $type]) inherited from Phalcon\Http\Client\Adapter

Send GET request

public Phalcon\Http\Client\Response head ([string $uri], [string $data], [unknown $type]) inherited from Phalcon\Http\Client\Adapter

Send HEAD request

public Phalcon\Http\Client\Response post ([string $uri], [string $data], [unknown $type]) inherited from Phalcon\Http\Client\Adapter

Send POST request

public Phalcon\Http\Client\Response put ([string $uri], [string $data], [unknown $type]) inherited from Phalcon\Http\Client\Adapter

Send PUT request

public Phalcon\Http\Client\Response delete ([string $uri], [string $data], [unknown $type]) inherited from Phalcon\Http\Client\Adapter

Send DELETE request

public Phalcon\Http\Client\Adapter setUri (string $uri) inherited from Phalcon\Http\Client\Adapter

Set URI

public Phalcon\Http\Uri getUri () inherited from Phalcon\Http\Client\Adapter

Get URI

public Phalcon\Http\Client\Adapter setBaseUri ([string $uri]) inherited from Phalcon\Http\Client\Adapter

Set base URI

public Phalcon\Http\Client\Adapter setMethod (unknown $method) inherited from Phalcon\Http\Client\Adapter

Set method

public Phalcon\Http\Client\Adapter setTimeOut (unknown $time) inherited from Phalcon\Http\Client\Adapter

Set the request timeout

public Phalcon\Http\Client\Response send ([unknown $uri]) inherited from Phalcon\Http\Client\Adapter

Send request