HTTPSpot

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

More reliable, faster, and more modern.

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://httpspot.dev/ip

{
    "origin": "127.0.0.1"
}

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

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

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

HTTP/1.1 418 I'm a teapot
Date: Mon, 01 Jan 2025 12:00:00 GMT
Content-Type: application/json
Content-Length: 135
Connection: close
Server: cloudflare
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true

$ curl https://httpspot.dev/anything -d "data"

{
    "args": {},
    "data": "data",
    "files": {},
    "form": {},
    "headers": {
        "accept": "*/*",
        "content-length": "4",
        "content-type": "application/x-www-form-urlencoded",
        "host": "httpspot.dev",
        "user-agent": "curl/7.79.1"
    },
    "json": null,
    "method": "POST",
    "origin": "127.0.0.1",
    "url": "https://httpspot.dev/anything"
}

Author

Ported to Cloudflare Workers by ratazzi.

From the original Kenneth Reitz project.

See Also

httpbin.org - the original httpbin

httpbingo.org - go-httpbin