@@ 141-144 (lines=4) @@ | ||
138 | curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $internalRequest->getMethod()); |
|
139 | break; |
|
140 | ||
141 | case RequestInterface::METHOD_POST: |
|
142 | curl_setopt($curl, CURLOPT_POST, true); |
|
143 | curl_setopt($curl, CURLOPT_POSTFIELDS, $this->prepareContent($internalRequest)); |
|
144 | break; |
|
145 | ||
146 | case RequestInterface::METHOD_PUT: |
|
147 | case RequestInterface::METHOD_PATCH: |
|
@@ 149-152 (lines=4) @@ | ||
146 | case RequestInterface::METHOD_PUT: |
|
147 | case RequestInterface::METHOD_PATCH: |
|
148 | case RequestInterface::METHOD_DELETE: |
|
149 | case RequestInterface::METHOD_OPTIONS: |
|
150 | curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $internalRequest->getMethod()); |
|
151 | curl_setopt($curl, CURLOPT_POSTFIELDS, $this->prepareContent($internalRequest)); |
|
152 | break; |
|
153 | } |
|
154 | ||
155 | return $curl; |