Getting Started
Guides
APIs
Sign up
Log in
Search
K
Log in
Sign up
Docs
HTTPBin
Returns a 304 if an If-Modified-Since header or If-None-Match is present. Returns the same as a GET otherwise.
get
https://httpbin.org
/cache
Headers
If-Modified-Since
string
If-None-Match
string
Response
200
Cached response
get
/cache
Try It!
Path Parameters
Query Parameters
Headers
If-Modified-Since
If-None-Match
Body
Shell
200
Sets a Cache-Control header for n seconds.
get
https://httpbin.org
/cache/{value}
Path Parameters
value
integer
required
Response
200
Cache control set
get
/cache/{value}
Try It!
Path Parameters
*
value
Query Parameters
Headers
Body
Shell
200
Assumes the resource has the given etag and responds to If-None-Match and If-Match headers appropriately.
get
https://httpbin.org
/etag/{etag}
Path Parameters
etag
string
required
Automatically added
Headers
If-None-Match
string
If-Match
string
Response
200
Normal response
get
/etag/{etag}
Try It!
Path Parameters
*
etag
Query Parameters
Headers
If-None-Match
If-Match
Body
Shell
200
Returns a set of response headers from the query string.
get
https://httpbin.org
/response-headers
Query Parameters
freeform
string
Response
200
Response headers
get
/response-headers
Try It!
Path Parameters
Query Parameters
freeform
Headers
Body
Shell
200
Returns a set of response headers from the query string.
post
https://httpbin.org
/response-headers
Query Parameters
freeform
string
Response
200
Response headers
post
/response-headers
Try It!
Path Parameters
Query Parameters
freeform
Headers
Body
Shell
200