Method | Description | |
---|---|---|
getCurlOptionFromResponse ( |
Returns a cURL option from a Response. | |
handleOutput ( |
Outputs a response depending on the set cURL option. | |
setCurlOptionOnRequest ( |
Sets a cURL option on a Request. | |
validateCurlPOSTBody ( |
Makes sure we've properly handled the POST body, such as ensuring that CURLOPT_INFILESIZE is set if CURLOPT_READFUNCTION is set. |
public static getCurlOptionFromResponse ( |
||
$response | Response to get cURL option from. | |
$option | integer | cURL option to get. |
return | mixed | Value of the cURL option. |
public static handleOutput ( |
||
$response | Response which contains the response body. | |
$curlOptions | array | cURL options which are not stored within the Response. |
$ch | resource | cURL handle to add headers if needed. |
return | null | string |
public static setCurlOptionOnRequest ( |
||
$request | Request to set cURL option to. | |
$option | integer | cURL option to set. |
$value | mixed | Value of the cURL option. |
$curlHandle | resource | cURL handle where this option is set on (optional). |
public static validateCurlPOSTBody ( |
||
$request | Request to set cURL option to. | |
$curlHandle | resource | cURL handle associated with the request. |