protected function createBaseRequest($relativeUrl)
	{
		$baseUrl = $this->getBaseUrl(false);
		$request = new \Zend\Http\Request();
		$request->setUri($baseUrl.$relativeUrl);
		$request->setMethod(\Zend\Http\Request::METHOD_POST);
		$request->getHeaders()->addHeaders(array(
			'Content-Type'=>'application/x-www-form-urlencoded; charset=UTF-8',
			'Accept-Encoding'=>'identity')); // plain text

		$this->addDefaultParameters($request);

		return $request;
	}
protected function createBaseRequest($relativeUrl)
	{
		$baseUrl = $this->getBaseUrl(false);
		$request = new \Zend\Http\Request();
		$request->setUri($baseUrl.$relativeUrl);
		$request->setMethod(\Zend\Http\Request::METHOD_POST);
		$request->getHeaders()->addHeaders(array(
			'Content-Type'=>'application/x-www-form-urlencoded; charset=UTF-8',
			'Accept-Encoding'=>'identity')); // plain text

		$this->addDefaultParameters($request);

		return $request;
	}
protected function createBaseRequest ( $ relativeUrl ) { $ baseUrl = $ this -> getBaseUrl ( false ) ; $ request = new \ Zend \ Http \ Request ( ) ; $ request -> setUri ( $ baseUrl . $ relativeUrl ) ; $ request -> setMethod ( \ Zend \ Http \ Request :: METHOD_POST ) ; $ request -> getHeaders ( ) -> addHeaders ( array ( 'Content-Type' => 'application/x-www-form-urlencoded; charset=UTF-8' , 'Accept-Encoding' => 'identity' ) ) ; // plain text $ this -> addDefaultParameters ( $ request ) ; return $ request ; }
Creates a basic HTTP request
@param string $relativeUrl the relative API URL
@return \Zend\Http\Request
Creates a basic HTTP request