public function retrieveResponse(UriInterface $endpoint, $requestBody, array $extraHeaders = [], $method = 'POST')
	{
		$this->endpoint = $endpoint;
		$this->requestBody = $requestBody;
		$this->extraHeaders = $extraHeaders;
		$this->method = $method;

		if ($this->useStreamsFallback && !$this->allowFollowLocation()) {
			return $this->streams();
		}

		return $this->curl();
	}
public function retrieveResponse(UriInterface $endpoint, $requestBody, array $extraHeaders = [], $method = 'POST')
	{
		$this->endpoint = $endpoint;
		$this->requestBody = $requestBody;
		$this->extraHeaders = $extraHeaders;
		$this->method = $method;

		if ($this->useStreamsFallback && !$this->allowFollowLocation()) {
			return $this->streams();
		}

		return $this->curl();
	}
public function retrieveResponse ( UriInterface $ endpoint , $ requestBody , array $ extraHeaders = [ ] , $ method = 'POST' ) { $ this -> endpoint = $ endpoint ; $ this -> requestBody = $ requestBody ; $ this -> extraHeaders = $ extraHeaders ; $ this -> method = $ method ; if ( $ this -> useStreamsFallback && ! $ this -> allowFollowLocation ( ) ) { return $ this -> streams ( ) ; } return $ this -> curl ( ) ; }
Any implementing HTTP providers should send a request to the provided endpoint with the parameters.
They should return, in string form, the response body and throw an exception on error.

@param UriInterface $endpoint
@param mixed $requestBody
@param array $extraHeaders
@param string $method
@return string
Any implementing HTTP providers should send a request to the provided endpoint with the parameters . They should return in string form the response body and throw an exception on error .