public function addPostField($key, $value)
    {
        $this->setMethod('POST');
        $this->setBody(null);
        if (!is_array($value)) {
            $this->_postFields[$key] = strval($value);
        } else {
            $value = $this->formatArrayField($value);
            foreach ($value as $k => $v) {
                $k = $key . '[' . $k . ']';
                $this->_postFields[$k] = $v;
            }
        }
    }
public function addPostField($key, $value)
    {
        $this->setMethod('POST');
        $this->setBody(null);
        if (!is_array($value)) {
            $this->_postFields[$key] = strval($value);
        } else {
            $value = $this->formatArrayField($value);
            foreach ($value as $k => $v) {
                $k = $key . '[' . $k . ']';
                $this->_postFields[$k] = $v;
            }
        }
    }
public function addPostField ( $ key , $ value ) { $ this -> setMethod ( 'POST' ) ; $ this -> setBody ( null ) ; if ( ! is_array ( $ value ) ) { $ this -> _postFields [ $ key ] = strval ( $ value ) ; } else { $ value = $ this -> formatArrayField ( $ value ) ; foreach ( $ value as $ k => $ v ) { $ k = $ key . '[' . $ k . ']' ; $ this -> _postFields [ $ k ] = $ v ; } } }
Add field for the request use POST
@param string $key field name.
@param mixed $value field value, array supported.
Add field for the request use POST