Returns anything passed in request data.
PUT
/anything/*anythingResponses
JSON
{
"method": "string",
"uri": "string",
"headers": {
},
"origin": "string",
"query": {
},
"body_string": "string",
"json": null
}
PUT
/anything/*anythingSamples
cURL
curl -X PUT https://httpbin.rs/anything/*anything
JavaScript
fetch("https://httpbin.rs/anything/*anything", { method: "PUT" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://httpbin.rs/anything/*anything");
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/anything/*anything")
print(response.json())