class JHttp


Located at : UKNOWVA_ROOT/libraries/joomla/client/http.php

HTTP client class.

Methods

void
__construct(array $options = array())

Constructor.

void
__destruct()

Destructor.

boolean
head(string $url)

Method to send the HEAD command to the server.

boolean
get(string $url)

Method to send the GET command to the server.

boolean
post(string $url, array $data)

Method to send the POST command to the server.

Details

at line 56
void __construct(array $options = array())

Constructor.

Parameters

array $options Array of configuration options for the client.

Return Value

void

at line 71
void __destruct()

Destructor.

Return Value

void

at line 90
boolean head(string $url)

Method to send the HEAD command to the server.

Parameters

string $url Path to the resource.

Return Value

boolean True on success.

Exceptions

JException

at line 120
boolean get(string $url)

Method to send the GET command to the server.

Parameters

string $url Path to the resource.

Return Value

boolean True on success.

Exceptions

JException

at line 151
boolean post(string $url, array $data)

Method to send the POST command to the server.

Parameters

string $url Path to the resource.
array $data Associative array of key/value pairs to send as post values.

Return Value

boolean True on success.

Exceptions

JException