diff --git a/src/RestClient/RestClient.php b/src/RestClient/RestClient.php index 549b4d7..1629d1c 100644 --- a/src/RestClient/RestClient.php +++ b/src/RestClient/RestClient.php @@ -218,6 +218,9 @@ private function executeDelete($curlHandle, Request $request) { curl_setopt($curlHandle, CURLOPT_URL, $request->getServiceUrl() . $request->getOperation()); curl_setopt($curlHandle, CURLOPT_CUSTOMREQUEST, 'DELETE'); + if ($request->getParameters()) { + curl_setopt($curlHandle, CURLOPT_POSTFIELDS, $this->buildPostBody($request->getParameters())); + } return $this->doExecute($curlHandle, $request); }