public function setPostFields(array $fields)
    {
        $this->post = $fields;

        $body = new Message\Body();
        $body->append(http_build_query($fields));
        parent::setBody($body);

        $_POST = $fields;
        $_REQUEST = array_merge($_GET, $_POST);
    }
public function setPostFields(array $fields)
    {
        $this->post = $fields;

        $body = new Message\Body();
        $body->append(http_build_query($fields));
        parent::setBody($body);

        $_POST = $fields;
        $_REQUEST = array_merge($_GET, $_POST);
    }
public function setPostFields ( array $ fields ) { $ this -> post = $ fields ; $ body = new Message \ Body ( ) ; $ body -> append ( http_build_query ( $ fields ) ) ; parent :: setBody ( $ body ) ; $ _POST = $ fields ; $ _REQUEST = array_merge ( $ _GET , $ _POST ) ; }
Sets POST fields

@param array $fields
Sets POST fields