How to use the HTTP Request Online tool
- Pick the verb under Method: GET, HEAD, POST, PUT, PATCH, DELETE or OPTIONS.
- Enter an HTTP(S) URL or a path on this site. Example sends a GET request for the site manifest.
- Optionally add request headers under Headers as a JSON object, for example {"Accept":"application/json"}.
- For POST, PUT, PATCH, DELETE or OPTIONS, put the payload in Body. The field is ignored for GET and HEAD.
- Select Send request and wait up to 10 seconds for the reply.
- Read the status line, headers and body in the Result box, then select Copy.
How this online HTTP request tool sends your call
The page calls the browser's fetch API with the method, headers and body you entered. No relay server sits in between: the connection goes from your device straight to the destination, which sees your IP address and the origin of this page. API keys never pass through a third-party backend, but the browser's same-origin policy applies.
Three settings are fixed in the code. Cookies and saved HTTP credentials are never attached. A redirect response is treated as a failure, so a 301 or 302 is not followed. The request is cancelled after 10 seconds.
CORS decides whether you see a response
A script on one origin may read a response from another origin only when that server opts in with an Access-Control-Allow-Origin header. Many internal services and most ordinary websites do not send it, and the browser then hides the response even though the server answered.
Plain GET, HEAD and POST calls go out directly. A PUT, PATCH or DELETE, a custom header such as Authorization, or a JSON Content-Type triggers a preflight OPTIONS request first. The server must answer it with matching Access-Control-Allow-Methods and Access-Control-Allow-Headers values, or the real request is never sent.
Example: a JSON POST and its result
This request went to a small echo server that allows every origin and replies with what it received. The result shows the status line, the headers scripts may read, a blank line and the body.
Method: POST
Headers: {"Content-Type":"application/json","Authorization":"Bearer demo"}
Body: {"name":"demo"}
HTTP 200 OK
cache-control: no-store
content-type: application/json
{"method":"POST","contentType":"application/json","body":"{\"name\":\"demo\"}"}Limits and reasons a request fails
Response bodies are decoded as UTF-8 text and cut off after 100,000 characters, followed by a [Response truncated] marker. Header names that browsers reserve, such as Cookie and Host, are dropped silently.
Invalid Headers JSON, and URLs with embedded credentials or a scheme other than http and https, are rejected before anything is sent. After that, every network-level problem produces the same failure message, because browsers do not tell scripts why a cross-origin call was blocked. The Network tab of the developer tools shows the cause. The usual ones:
- The server sent no Access-Control-Allow-Origin header, or it rejected the preflight.
- The URL answered with a redirect. Enter the final address instead.
- No reply arrived within 10 seconds.
- The address uses plain http:// while this page is on HTTPS, which browsers generally block as mixed content.
Frequently asked questions
Why does my request fail when the same URL works in curl?
curl is not a browser and ignores CORS. This tool runs inside a web page, so the browser blocks the response unless the server returns Access-Control-Allow-Origin for this site or a wildcard. Enable CORS on the API, or test with a command-line client.
Are my API keys or tokens sent to Base64Coding?
No. Your browser makes the request directly to the URL you enter, and the code has no proxy step. Headers and body are visible to the destination server only. Cookies your browser holds for that destination are not included.
Can I send a JSON body?
Yes. Choose POST, PUT or PATCH, paste the JSON into Body and add {"Content-Type":"application/json"} under Headers. Without that header the browser labels a text body as text/plain;charset=UTF-8, which some APIs refuse.
Why are some response headers missing?
Browsers expose only a short safelist of response headers to cross-origin scripts: Cache-Control, Content-Language, Content-Length, Content-Type, Expires, Last-Modified and Pragma. Any other header appears only if the server names it in Access-Control-Expose-Headers.
Are 404 and 500 responses shown?
Yes. An error status is still a valid HTTP response, so its status line, readable headers and body are printed like any other. Over HTTP/2 and HTTP/3 the first line may show only the number, because those protocols have no reason phrase.