|
@@ 155-158 (lines=4) @@
|
| 152 |
|
case 'HEAD': |
| 153 |
|
curl_setopt( $handle, CURLOPT_NOBODY, true ); |
| 154 |
|
break; |
| 155 |
|
case 'POST': |
| 156 |
|
curl_setopt( $handle, CURLOPT_POST, true ); |
| 157 |
|
curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); |
| 158 |
|
break; |
| 159 |
|
case 'PUT': |
| 160 |
|
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' ); |
| 161 |
|
curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); |
|
@@ 159-162 (lines=4) @@
|
| 156 |
|
curl_setopt( $handle, CURLOPT_POST, true ); |
| 157 |
|
curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); |
| 158 |
|
break; |
| 159 |
|
case 'PUT': |
| 160 |
|
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' ); |
| 161 |
|
curl_setopt( $handle, CURLOPT_POSTFIELDS, $r['body'] ); |
| 162 |
|
break; |
| 163 |
|
default: |
| 164 |
|
curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $r['method'] ); |
| 165 |
|
if ( ! is_null( $r['body'] ) ) |