1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php require __DIR__ . '/../vendor/autoload.php';
use Curl\Curl;
$curl = new Curl(); $curl->delete( 'https://httpbin.org/delete', [ 'key' => 'value', ], [ 'a' => '1', 'b' => '2', 'c' => '3', ] );
if ($curl->error) { echo 'Error: ' . $curl->errorMessage . "\n"; } else { echo 'Data server received via DELETE:' . "\n"; var_dump($curl->response->form); }
|