You are here

private function ServicesClientConnectionCurlRequest::getCurlPutOptions in Services Client 7.2

Same name and namespace in other branches
  1. 7 services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc \ServicesClientConnectionCurlRequest::getCurlPutOptions()

Return the standard set of curl options for a PUT

Parameters

ServicesClientConnectionHttpRequest $request: Request data that should be processed

Return value

array cURL opts array

1 call to ServicesClientConnectionCurlRequest::getCurlPutOptions()
ServicesClientConnectionCurlRequest::getCurlOptions in services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc
Returns cURL opts

File

services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc, line 159
Make requests via cURL

Class

ServicesClientConnectionCurlRequest
@file Make requests via cURL

Code

private function getCurlPutOptions(&$request) {
  $ret = $this
    ->getDefaultCurlOptions($request);
  $ret += array(
    CURLOPT_CUSTOMREQUEST => 'PUT',
    CURLOPT_POSTFIELDS => $request->data,
  );
  return $ret;
}