Inherited Variables
Inherited Constants
Inherited Methods
Class: VObject
- VObject::__construct()
- Class Constructor
- VObject::bind()
- Bind values to this object
- VObject::delete()
- Delete Object
- VObject::get()
- Get value
- VObject::getAll()
- Get all object values
- VObject::getError()
- Get error message
- VObject::getErrors()
- Get errors
- VObject::getMethods()
- Get object methods
- VObject::getProperties()
- Get object properties
- VObject::save()
- Save Object
- VObject::set()
- Set a value
- VObject::setError()
- Set error value
- VObject::setProperties()
- Set property values
- VObject::setProperty()
- Set property value
- VObject::toString()
- Convert object to string
- VObject::__destruct()
- Class Destructor
- VObject::__get()
- VObject::__isset()
- VObject::__set()
- VObject::__toString()
- Return object as a string
- VObject::__unset()
Class Details
Virtual Web Platform - HTTP Client
This class provides the default HTTP client.
Tags:
- author - Ralph Ritoch <rritoch@gmail.com>
- copyright - (c) Ralph Ritoch - All Rights Reserved
- link - VNetPublishing.Com
- license - VNETLPL Limited Public License
[ Top ]
Class Variables
$_link
[line 49]
HTTP Link
Tags:
- var - HTTP Link
- access - protected
Type: mixed
Overrides:
[ Top ]
Class Methods
static getInstance
static VHTTPClient &getInstance(
)
[line 73]
Get a HTTPClient object
Tags:
- return - HTTP Client
- access - public
Parameters:
[ Top ]
__construct
VHTTPClient __construct(
)
[line 295]
Class constructor
Tags:
- access - public
Overrides VObject::__construct() (Class Constructor)
Parameters:
[ Top ]
__destruct
void __destruct(
)
[line 310]
Class destructor
Tags:
- access - public
Overrides VObject::__destruct() (Class Destructor)
Parameters:
[ Top ]
fetch
string|object HTTP fetch(
string
$url, [string
$method = 'GET'], [array
$options = array()], [string|array
$data = ''])
[line 92]
Fetch HTTP response
Tags:
- return - Response on success, error or warning otherwise
- access - public
Parameters:
- string $url - URL
- string $method - Method
- array $options - Options
- string|array $data - Data
[ Top ]
setAgent
true|object Returns setAgent(
string
$name)
[line 178]
Set Agent name
Tags:
- return - true on success, error or warning otherwise
- access - public
Parameters:
- string $name - Agent name
[ Top ]
wget
void wget(
string
$url, [array
$options = array()])
[line 195]
Request web document using HTTP Get Method
Tags:
- access - public
Parameters:
- string $url - URL
- array $options -
[ Top ]
wpost
string|object HTTP wpost(
string
$url, [array
$post_data = ''], [$options
$options = array()])
[line 229]
Request web document using HTTP Post Method
Tags:
- return - Response Document on success, error or warning otherwise
- access - public
Parameters:
- string $url - URL
- array $post_data - Post Data
- $options $options -
[ Top ]