You are here

function HTTP_Request::addPostData in Flickr API 5

Adds postdata items

@access public

Parameters

string Post data name:

string Post data value:

bool Whether data is already urlencoded or not, default = not:

File

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

Class

HTTP_Request
Class for performing HTTP requests

Code

function addPostData($name, $value, $preencoded = false) {
  if ($preencoded) {
    $this->_postData[$name] = $value;
  }
  else {
    $this->_postData[$name] = $this
      ->_arrayMapRecursive('urlencode', $value);
  }
}