Skip to content

The request's POST parameters

POST
/post

Responses

JSON
{
"method": "string",
"uri": "string",
"headers": {
},
"origin": "string",
"query": {
},
"body_string": "string",
"json": null
}

Samples

cURL
curl -X POST https://httpbin.rs/post
JavaScript
fetch("https://httpbin.rs/post", { method: "POST" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://httpbin.rs/post");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.post("https://httpbin.rs/post")
print(response.json())
Powered by VitePress OpenAPI