Last Updated: February 25, 2016
· xan

HTTPbin: a test-bench for your http client

I was playing with requests, a nicer http library for Python, and I wanted to see how it handled the various HTTP responses. I can't remember how but luckily I found exactly what I needed on

From their website:

httpbin(1): HTTP Request & Response Service

Testing an HTTP Library can become difficult sometimes. is fantastic for testing POST requests, but not much else. This exists to cover all kinds of HTTP scenarios. Additional endpoints are being considered (e.g. /deflate).
All endpoint responses are JSON-encoded.