<?php require '../src/Curl/Curl.php'; use ZzhhCurl\Curl; // curl -X PUT -d "id=1&first_name=Zach&last_name=Borboa" "https://httpbin.org/put" $curl = new Curl(); $curl->put('https://httpbin.org/put', array('id' => 1, 'first_name' => 'Zach', 'last_name' => 'Borboa')); echo 'Data server received via PUT:' . "\n"; var_dump($curl->response->form);