Httpbin.dev

Httpbin.dev is a service to debug/test your http clients

Sponsors:

logo

ENDPOINTS

Example

$ curl https://httpbin.dev/ip

{"origin":"73.238.9.52, 77.83.142.42"}

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

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

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

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

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

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

$ curl -I https://httpbin.dev/status/403

HTTP/2 403
access-control-allow-credentials: true
access-control-allow-origin: *
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
content-security-policy:  frame-ancestors 'self' *.httpbin.dev; font-src 'self' *.httpbin.dev; default-src 'self' *.httpbin.dev; img-src 'self' *.httpbin.dev; media-src 'self' *.httpbin.dev; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.httpbin.dev; style-src 'self' 'unsafe-inline' *.httpbin.dev https://unpkg.com; frame-src 'self' *.httpbin.dev; worker-src 'self' *.httpbin.dev; connect-src 'self' *.httpbin.dev
date: Mon, 27 Mar 2023 16:26:57 GMT
permissions-policy: fullscreen=(self), autoplay=*, geolocation=(), camera=()
referrer-policy: strict-origin-when-cross-origin
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-xss-protection: 1; mode=block