Httpbin
Httpbin

HTTP Request & Response Service, written in Python + Flask.

httpbin.org is a simple HTTP request and response testing service designed for developers to test APIs, inspect responses, and simulate various server scenarios.

Features:

  • HTTP Methods: Supports GET, POST, PUT, DELETE, and PATCH requests

  • Request Inspection: Allows examination of incoming request details including headers, query parameters, and body content

  • Status Codes: Can return specific HTTP status codes (200, 404, 500, etc.) for error handling testing

  • Dynamic Data: Generates random JSON responses and images of specified sizes for edge case testing

Popular Endpoints:

  • /get, /post - Return request data

  • /headers, /ip, /user-agent - Return specific request information

  • /status/:code - Return specific status codes

  • /delay/:n - Add response delays

  • /redirect/:n - Test redirections

  • /cookies, /basic-auth - Test cookies and authentication

Local Usage: Can be run locally using Docker: $ docker run -p 80:80 kennethreitz/httpbin

Use Cases: Perfect for testing HTTP clients, validating retry logic, checking timeouts, developing APIs, testing web scrapers, and validating proxy configurations.