public function EasyRdf_Http_Client::setRawData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Client.php \EasyRdf_Http_Client::setRawData()
Set the raw (already encoded) POST data.
This function is here for two reasons: 1. For advanced user who would like to set their own data, already encoded 2. For backwards compatibilty: If someone uses the old post($data) method. this method will be used to set the encoded data.
$data can also be stream (such as file) from which the data will be read.
Parameters
string|resource $data:
Return value
Zend_Http_Client
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Http/ Client.php, line 315
Class
- EasyRdf_Http_Client
- This class is an implemetation of an HTTP client in PHP. It supports basic HTTP 1.0 and 1.1 requests. For a more complete implementation try Zend_Http_Client.
Code
public function setRawData($data) {
$this->rawPostData = $data;
return $this;
}