HTTP Inspector

An HTTP request & response testing service inspired by httpbin.org, running on Cloudflare Workers, more reliable, faster.

ENDPOINTS

DESCRIPTION

Testing an HTTP library can become difficult sometimes. RequestBin is fantastic for testing POST requests, but doesn't let you control the response. This exists to cover all kinds of HTTP scenarios. Additional endpoints are being considered.

All endpoint responses are JSON-encoded.

EXAMPLES

$ curl https://httpi.dev/ip

{"origin": "73.238.9.52, 77.83.142.42"}

$ curl https://httpi.dev/user-agent

 {"user-agent":"curl/7.64.1"}

$ curl https://httpi.dev/get?foo=bar

          
{
  "args": {
    "foo": [
      "bar"
    ]
  },
  "headers": {
    "Accept": [
      "*/*"
    ],
    "Host": [
      "httpi.dev"
    ],
    "User-Agent": [
      "curl/7.64.1"
    ]
  },
  "origin": "73.238.9.52, 77.83.142.42",
  "url": "https://httpi.dev/get?foo=bar"
}
          
         

$ curl https://httpi.dev/dump/request?foo=bar

            
GET /dump/request?foo=bar HTTP/1.1
Host: httpi.dev
Accept: */*
User-Agent: curl/7.64.1
            
            

$ curl -I https://httpi.dev/status/418

             
HTTP/1.1 418 I'm a teapot
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
X-More-Info: http://tools.ietf.org/html/rfc2324
Date: Tue, 13 Jul 2021 13:12:37 GMT
Content-Length: 0
             
             

AUTHOR

Ported to Cloudflare Workers by ratazzi.

From the original Kenneth Reitz project.

SEE ALSO

httpbin.org - the original httpbin

httpbingo.org - go-httpbin