|
@@ 793-799 (lines=7) @@
|
| 790 |
|
curl_setopt($crl, CURLOPT_POSTFIELDS, ltrim($postfields, '?')); |
| 791 |
|
} |
| 792 |
|
break; |
| 793 |
|
case 'PUT': |
| 794 |
|
curl_setopt($crl, CURLOPT_CUSTOMREQUEST, 'PUT'); |
| 795 |
|
curl_setopt($crl, CURLOPT_HTTPHEADER, array('Content-Length: ' . strlen($postfields))); |
| 796 |
|
if (!is_null($postfields)) { |
| 797 |
|
curl_setopt($crl, CURLOPT_POSTFIELDS, ltrim($postfields, '?')); |
| 798 |
|
} |
| 799 |
|
break; |
| 800 |
|
case 'DELETE': |
| 801 |
|
curl_setopt($crl, CURLOPT_CUSTOMREQUEST, 'DELETE'); |
| 802 |
|
curl_setopt($crl, CURLOPT_HTTPHEADER, array('Content-Length: ' . strlen($postfields))); |
|
@@ 800-805 (lines=6) @@
|
| 797 |
|
curl_setopt($crl, CURLOPT_POSTFIELDS, ltrim($postfields, '?')); |
| 798 |
|
} |
| 799 |
|
break; |
| 800 |
|
case 'DELETE': |
| 801 |
|
curl_setopt($crl, CURLOPT_CUSTOMREQUEST, 'DELETE'); |
| 802 |
|
curl_setopt($crl, CURLOPT_HTTPHEADER, array('Content-Length: ' . strlen($postfields))); |
| 803 |
|
if (!is_null($postfields)) { |
| 804 |
|
curl_setopt($crl, CURLOPT_POSTFIELDS, ltrim($postfields, '?')); |
| 805 |
|
} |
| 806 |
|
} |
| 807 |
|
|
| 808 |
|
curl_setopt($crl, CURLOPT_URL, $uri); |