jHttp

Extends \netHttp

To send http request

package

jelix

subpackage

utils

see

Methods

debug

debug( $msg,  $object = false) 

Arguments

$msg

$object

DELETE Request

delete(string $path, array $data = false) : boolean

Executes a DELETE request for the specified path. If $data is specified, appends it to a query string as part of the get request. $data can be an array of key value pairs, in which case a matching query string will be constructed. Returns true on success.

Arguments

$path

string

Request path

$data

array

Request parameters

Response

boolean

PUT Request

put(string $path, array $data, array $charset = null,  $contentType = null) : boolean

Executes a PUT request for the specified path.

Arguments

$path

string

Request path

$data

array

Request parameters

$charset

array

Request charset

$contentType

Response

boolean

Properties

user_agent

user_agent : 

Type(s)