The request's PUT parameters
PUT
/putResponses
JSON
{
"method": "string",
"uri": "string",
"headers": {
},
"origin": "string",
"query": {
},
"body_string": "string",
"json": null
}
PUT
/putSamples
cURL
curl -X PUT https://httpbin.rs/put
JavaScript
fetch("https://httpbin.rs/put", { method: "PUT" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://httpbin.rs/put");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.put("https://httpbin.rs/put")
print(response.json())