<?php
require __DIR__ . '/../vendor/autoload.php';

use \Curl\Curl;

// curl --request DELETE "https://httpbin.org/delete?key=value" --data "a=1&b=2&c=3"

$curl = new Curl();
$curl->delete(
    'https://httpbin.org/delete',
    array(
        'key' => 'value',
    ),
    array(
        'a' => '1',
        'b' => '2',
        'c' => '3',
    )
);

if ($curl->error) {
    echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
} else {
    echo 'Data server received via DELETE:' . "\n";
    var_dump($curl->response->form);
}
