# Httpbin
HTTP Request & Response Service by [Kenneth Reitz](https://kennethreitz.org/) (now maintained by Postman Labs). Echoes requests back as JSON — useful for testing HTTP clients, inspecting headers, testing auth flows, etc.
## Run Locally
```bash
docker pull kennethreitz/httpbin
docker run -p 80:80 kennethreitz/httpbin
```
Then access at `http://localhost`.
## Endpoints
| Category | Description |
|----------|-------------|
| HTTP verbs | `GET /get`, `POST /post`, `PUT /put`, `PATCH /patch`, `DELETE /delete` |
| Auth | Basic, Bearer, Digest — returns 200 on success, 401 on failure |
| Request inspection | `/headers`, `/ip`, `/user-agent`, `/anything` |
| Random/dynamic data | `/uuid`, `/bytes/{n}`, `/base64/{value}` |
| Image formats | `/image/png`, `/image/jpeg`, `/image/svg`, `/image/webp` |
| Response codes | `/status/{code}` — returns the given HTTP status |
| Redirects | `/redirect/{n}`, `/redirect-to`, `/relative-redirect/{n}` |
| Cookies | `/cookies`, `/cookies/set`, `/cookies/delete` |
## Links
- [httpbin.org](https://httpbin.org) — live instance with Swagger UI
- [GitHub](https://github.com/postmanlabs/httpbin)
- [Docker Hub](https://hub.docker.com/r/kennethreitz/httpbin/)