protected function sendRequest(array $curl_options = []): string
	{
		$ch = curl_init();

		curl_setopt_array($ch, $curl_options);

		// Send the request and wait for a response.
		$output = curl_exec($ch);

		if ($output === false)
		{
			throw HTTPException::forCurlError(curl_errno($ch), curl_error($ch));
		}

		curl_close($ch);

		return $output;
	}
protected function sendRequest(array $curl_options = []): string
	{
		$ch = curl_init();

		curl_setopt_array($ch, $curl_options);

		// Send the request and wait for a response.
		$output = curl_exec($ch);

		if ($output === false)
		{
			throw HTTPException::forCurlError(curl_errno($ch), curl_error($ch));
		}

		curl_close($ch);

		return $output;
	}
protected function sendRequest ( array $ curl_options = [ ] ) : string { $ ch = curl_init ( ) ; curl_setopt_array ( $ ch , $ curl_options ) ; // Send the request and wait for a response. $ output = curl_exec ( $ ch ) ; if ( $ output === false ) { throw HTTPException :: forCurlError ( curl_errno ( $ ch ) , curl_error ( $ ch ) ) ; } curl_close ( $ ch ) ; return $ output ; }
Does the actual work of initializing cURL, setting the options,
and grabbing the output.

@codeCoverageIgnore

@param array $curl_options

@return string
Does the actual work of initializing cURL setting the options and grabbing the output .