Class Http
Http component that wraps cURL
Package: blesta\components\net\http
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/net/http/http.php
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/net/http/http.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
#
post( mixed $url, array $params = null, mixed $files = null )
Execut a POST request on the given URL |
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setOption( integer $option, string $value, boolean $override = true )
Set the given $option and $value. Accepts CURLOPT_* options. |
public
string
|
#
request( string $method, string $url, mixed $params = null )
Processes the request using the given method and URL, with optional urlencoded parameters |
public
|
|
private
|
Magic methods summary
Properties summary
private
resource
|
$curl |
#
The curl connection |
private
array
|
$headers |
#
An array of headers to sent during the request |
private
string
|
$cookie_file |
#
The cookie file to use during the request |
private
integer
|
$response_code |
#
The HTTP response code returned from the last request |
private
boolean
|
$verify_ssl |
#
True to verify the SSL cert, false otherwise |
private
array
|
$options |
#
An array of options to set for this curl connection |
private
resource
|
$debug_stream |
#
The stream to send debugging info, null to disable debugging |
private
boolean
|
$persistent_connection |
#
True to enable persistent connections, false to reset the connection for each request |