private function ServicesClientConnectionCurlRequest::getCurlPostOptions in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc \ServicesClientConnectionCurlRequest::getCurlPostOptions()
Return the standard set of curl options for a POST
Parameters
ServicesClientConnectionHttpRequest $request: Request data that should be processed
Return value
array cURL opts array
1 call to ServicesClientConnectionCurlRequest::getCurlPostOptions()
- ServicesClientConnectionCurlRequest::getCurlOptions in services_client_connection/
plugins/ ServicesClientConnectionCurlRequest.inc - Returns cURL opts
File
- services_client_connection/
plugins/ ServicesClientConnectionCurlRequest.inc, line 94 - Make requests via cURL
Class
- ServicesClientConnectionCurlRequest
- @file Make requests via cURL
Code
private function getCurlPostOptions(&$request) {
$ret = $this
->getDefaultCurlOptions($request);
$ret += array(
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => $request->data,
);
return $ret;
}