An adapter class for ZendHttpClient based on the curl extension. Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl
Set the configuration array for the adapter
| Parameters: | array|Traversable – |
|---|---|
| Return type: | Curl |
| Throws : | AdapterExceptionInvalidArgumentException |
Direct setter for cURL adapter related options.
| Parameters: |
|
|---|---|
| Return type: | Curl |
Initialize curl
| Parameters: |
|
|---|---|
| Return type: | void |
| Throws : | AdapterExceptionRuntimeException if unable to connect |
Send request to the remote server
| Parameters: |
|
|---|---|
| Return type: | string $request |
| Throws : | AdapterExceptionRuntimeException If connection fails, connected to wrong host, no PUT file defined, unsupported method, or unsupported cURL option |
| Throws : | AdapterExceptionInvalidArgumentException if $method is currently not supported |
Return read response from server
| Return type: | string |
|---|
Close the connection to the server