Online HTTP Client

Build an HTTP request with a method, URL, headers and body, send it straight from your browser, and see the status, time, size, headers and body of the response. The same request is written out as cURL, JavaScript fetch, Axios, Python requests, Go, PHP or HTTPie, so you can move it into code or a terminal when you are done.

Start from
Headers

Requests go straight from your browser to the address you enter; nothing passes through or is stored on our servers. The browser only allows APIs that permit cross-site calls (CORS) and hides some response headers.

Code
cURL
curl 'https://httpbin.org/get?city=Pune' \
  -H 'Accept: application/json'

Features

  • GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS

  • Header rows with shortcuts for JSON and Bearer tokens

  • Status, time, size, headers and pretty-printed JSON response

  • Code in seven languages for the same request

  • Requests go from your browser directly; nothing passes through us

  • Paste a cURL command to start from it

What to test with it

Public and CORS-enabled APIs

Try an endpoint from API documentation before writing code.

Your own development APIs

Send requests to an API that allows browser calls from other sites, and copy the working request as code.

Turning a request into code

Build it once with a form and copy it as Python, Go, PHP or JavaScript.

Browser limits to know

CORS

A web page may only call APIs that allow cross-site requests (CORS). Many public APIs do; many private ones do not, and the browser then blocks the call before you see a response. When that happens, copy the cURL command and run it in a terminal, where CORS does not apply.

Other limits

  • Browsers do not let a page set some headers, such as Cookie, Host or User-Agent.
  • Only response headers the server exposes are visible.
  • An https page cannot call plain http:// addresses (except localhost in some browsers).

Related tools

Convert an existing command with the cURL converter; measure latency with the API response time tester; inspect incoming calls with the webhook tester.

Online HTTP Client - FAQ