You are here

function HTTP_Request::addRawPostData in Flickr API 5

Adds raw postdata (DEPRECATED)

@access public

Parameters

string The data:

bool Whether data is preencoded or not, default = already encoded:

Deprecated

deprecated since 1.3.0, method setBody() should be used instead

File

phpFlickr/PEAR/HTTP/Request.php, line 612

Class

HTTP_Request
Class for performing HTTP requests

Code

function addRawPostData($postdata, $preencoded = true) {
  $this->_body = $preencoded ? $postdata : urlencode($postdata);
}