HTTP Methods
Testing different HTTP verbs
Returns GET data.
Try it out
Request
curl https://httpbin.org/get
Response
HTTP/1.1 200 OK{
"args": {},
"headers": { "Host": "httpbin.org" },
"origin": "203.0.113.1",
"url": "https://httpbin.org/get"
}
Returns POST data.
Try it out
Request
curl -X POST https://httpbin.org/post -d "hello=world"
Response
HTTP/1.1 200 OK{
"form": { "hello": "world" },
"url": "https://httpbin.org/post"
}
Returns PUT data.
Try it out
Request
curl -X PUT https://httpbin.org/put -d "hello=world"
Response
HTTP/1.1 200 OK{
"form": { "hello": "world" },
"url": "https://httpbin.org/put"
}
Returns PATCH data.
Try it out
Request
curl -X PATCH https://httpbin.org/patch -d "hello=world"
Response
HTTP/1.1 200 OK{
"form": { "hello": "world" },
"url": "https://httpbin.org/patch"
}
Returns DELETE data.
Try it out
Request
curl -X DELETE https://httpbin.org/delete
Response
HTTP/1.1 200 OK{
"args": {},
"url": "https://httpbin.org/delete"
}