httpbin README

The project's README from github.com/postmanlabs/httpbin. As one markdown file: README.md.

httpbin(1): HTTP Request & Response Service

A Kenneth Reitz Project.

ice cream

httpbin is a small web service for testing HTTP clients. It echoes back what you send (headers, query, body, files, cookies, your IP) and answers on demand with the status code, delay, redirect, compression, auth challenge or data you ask for, so you can check how your code behaves against each of them. It is what runs at http://httpbin.org.

This project does not publish releases or Docker images. To run your own copy, build it from this repository:

git clone https://github.com/postmanlabs/httpbin.git
cd httpbin
docker build -t httpbin . && docker run -p 80:8080 httpbin

See http://httpbin.org for more information.

To limit where /redirect-to may send clients, set ALLOWED_REDIRECT_DOMAINS to a comma-separated list of hosts, for example docker run -p 80:8080 -e ALLOWED_REDIRECT_DOMAINS=example.com,example.org httpbin.

Running the tests

pip install --require-hashes -r requirements-test.txt
python test_httpbin.py

To run the tests against any running httpbin instead of the in-process app, set its base URL. Tests that need the in-process app are skipped.

HTTPBIN_TEST_TARGET_URL=http://localhost:8080 python test_httpbin.py

Officially Deployed at:

SEE ALSO

Build Status

test

httpbin (postmanlabs/httpbin)

Searching Database…

What is this?An HTTP request and response service: a web API you can send requests to and inspect the responses, handy for testing HTTP clients. It is written in Python and Flask.
Is it a library I import into my code, or a service I send real HTTP requests to?A service, not a library: it runs as an HTTP server, so any HTTP client — curl, a browser, code in any language — can talk to it.
How do I run my own copy?The README links a Run Locally section, and the repo ships a Dockerfile plus a docker-compose setup, so you can run the Flask app natively or bring it up with Docker Compose.
Do I need a Python environment set up to self-host it?Only for the native route, since it is a Python + Flask application. With the provided Docker or docker-compose setup, Python and its dependencies stay inside the container.
Can I try it without installing anything?Yes — the README points to officially deployed public instances, so you can start sending requests over the web immediately.
Is httpbin still actively developed?It dates back to 2011, is not archived, and now lives under Postman Labs' GitHub organization with roughly 13.6k stars — an old but well-known project.
What are similar projects?nock, reclip, sanic, iptv-api, livego, cli, FractalCore, proxy_pool
Size
1.5 MB
Stars
13.6K
Age
15y
Commits · 90 Days