Httpbin

Return the incoming requests's User-Agent header.

get
https://httpbingo.org/user-agent

Response

200

The request’s User-Agent header.

 
200

Response inspection

Inspect the response data like caching and headers

Returns a 304 if an If-Modified-Since header or If-None-Match is present. Returns the same as a GET otherwise.

get
https://httpbingo.org/cache

Headers

If-Modified-Since
If-None-Match

Response

Cached response

 

Sets a Cache-Control header for n seconds.

get
https://httpbingo.org/cache/{value}

Path Parameters

valueintegerrequired

Response

200

Cache control set

 
200

Assumes the resource has the given etag and responds to If-None-Match and If-Match headers appropriately.

get
https://httpbingo.org/etag/{etag}

Headers

If-None-Match
If-Match

Response

Normal response