Zend\Http\Client\Adapter\Curl::write
Send request to the remote server
Signature
public function write(string
$method,
[Uri
$uri = 1.1,
[float
$httpVersion = 1.1,
[array
$headers = '',
[string
$body = '']]]] )
Parameters
$method
—
string
$uri
—
object
$httpVersion
—
float
$headers
—
array
$body
—
string
Returns
- string
- $request
Errors/Exceptions
-
RuntimeException
- If connection fails, connected to wrong host, no PUT file defined, unsupported method, or unsupported cURL option
-
InvalidArgumentException
- if $method is currently not supported
Defined by Interface
AdapterInterface