Skip to main content

HTTP Request & API Collection Tester

Send individual API requests or run reusable request collections with assertions

HTTP Request Builder

Request URLs, headers, and bodies stay in this tab's memory. The target API receives the request you send.

Headers

Configure a request and select Send to inspect its status, response body, and headers.

Was this HTTP Request & API Collection Tester helpful?

Help us keep tools reliable, fast, and bug-free.

What you can do with HTTP Request & API Collection Tester

  • Send api request
  • Test rest endpoint
  • Build api test collection
  • Create reusable http requests
  • Inspect api response

What this network diagnostic measures

Send individual HTTP requests or manage browser-based request collections, run supported response assertions, inspect results, and import or export cURL and JSON.

Example input

{"method":"GET","url":"https://api.example.com/v1/users/7","headers":{"Accept":"application/json"},"assertions":["pm.expect(pm.response.status).to.be.ok();"]}

Example output

{"status":200,"statusText":"OK","body":{"id":7,"name":"Ada"},"assertions":[{"passed":true,"message":"Response status is OK"}]}

Practical workflow

  1. Choose Quick request for one HTTP call, or Collections & assertions to create a reusable request list.
  2. For a quick call, select the method and enter an HTTP or HTTPS URL, headers, and an optional body. In a collection, add a request or choose a REST CRUD or authentication template.
  3. Optionally add supported response checks: status is OK, equals a status code, or is below a threshold; response body type; or a response-body property that exists.
  4. Send the request or run a collection, then inspect status, duration, body, headers, and each assertion result.
  5. Import a cURL request or JSON collection, or export cURL commands and collection JSON for use elsewhere.

Common use cases

  • Send a single request to a CORS-enabled API and inspect its response before changing application code.
  • Run a CRUD request template against a test API and see which status or response assertions pass.
  • Import a cURL example or share an exported JSON collection with a teammate.

Important notes and limitations

  • Requests use browser fetch and go to the URL you enter. Cross-origin targets must allow the request through CORS; there is no proxy mode.
  • Quick-request method preference is stored locally; its URL, headers, and body stay in tab memory. Collections are also held in memory until you export them as JSON.
  • Assertion text is parsed against a small supported syntax and is never executed as JavaScript. Unsupported expressions fail with an explicit result.
  • Avoid importing collections from untrusted sources or sending production credentials to endpoints you do not control. The browser sends credentials only as configured to the target URL.

cURL & automated HTTP client debugging snippets

cURL with verbose headers & connection timings

curl -iv -w '\nDNS: %{time_namelookup}s | Connect: %{time_connect}s | TTFB: %{time_starttransfer}s | Total: %{time_total}s\n' -X POST https://api.example.com/v1/resource -H 'Content-Type: application/json' -d '{"key":"value"}'

Sends an authenticated HTTP POST request while outputting detailed round-trip latency, DNS resolution, and TLS handshake metrics.

cURL follow redirects & dump response headers

curl -sSL -D - https://api.example.com/health -o /dev/null

Follows HTTP 301/308 redirects and prints all intermediate and final HTTP response headers to stdout.

Node.js native fetch with AbortSignal timeout

const res = await fetch('https://api.example.com/data', { method: 'GET', signal: AbortSignal.timeout(5000) });

Performs an asynchronous HTTP GET request in modern Node.js and browsers with an automatic 5-second timeout abort.

HTTP Client Environments & Browser Sandbox Constraints

Feature / CapabilityIn-Browser Web ClientcURL / Terminal CLIBackend Server (Node/Go/Python)
Cross-Origin Requests (CORS)Strictly enforced by browser engine; blocked unless server returns Access-Control-Allow-OriginBypassed entirely; cURL is not constrained by browser origin sandboxBypassed entirely; direct TCP/TLS connection
Forbidden Request HeadersRestricted (Browser refuses user overrides for Host, Origin, Cookie, User-Agent, Referer)Unrestricted (Any arbitrary header can be sent with -H)Unrestricted (Full raw HTTP header control)
HTTP Protocol SupportHTTP/1.1, HTTP/2, HTTP/3 (Negotiated transparently by browser)HTTP/1.1, HTTP/2, HTTP/3 (Configurable via --http2, --http3-only)Depends on HTTP client library and TLS engine
Cookie / Credential HandlingRestricted by SameSite & credentials policies (omit/include/same-origin)Managed via -b (cookie file) or manual -H 'Cookie: ...'Programmatically managed via cookie jar or raw headers

API client, CORS & network troubleshooting

TypeError: Failed to fetch (CORS header missing or preflight blocked)

Cause: Target server does not send 'Access-Control-Allow-Origin: *' or your origin in response to browser requests, or OPTIONS preflight returned non-2xx status.

Solution: Configure CORS on your API server (e.g., res.setHeader('Access-Control-Allow-Origin', '*')). Alternatively, test via backend proxy or CLI cURL.

Mixed Content: The page was loaded over HTTPS, but requested an insecure resource

Cause: Modern browsers block HTTP API requests initiated from an HTTPS origin to protect session integrity.

Solution: Use HTTPS endpoints for target APIs, or configure an SSL termination reverse proxy (like Nginx or Cloudflare) in front of the HTTP service.

Refused to set unsafe header (Host, User-Agent, Cookie)

Cause: W3C XMLHttpRequest and Fetch specifications designate these as forbidden header names to prevent session spoofing.

Solution: To test custom Host or Cookie headers, use the terminal cURL equivalent or a backend client instead of client-side browser JavaScript.

Continue your workflow

  • cURL to Code — Convert working HTTP API requests into production Python, Go, Node.js, and PHP scripts.
  • HTTP Headers Inspector — Inspect detailed response headers, CORS policies, and server security configurations.
  • JWT Debugger — Decode, inspect, and verify Bearer JWT authentication tokens used in Authorization headers.
  • OpenAPI to Postman — Convert OpenAPI and Swagger specifications into executable Postman API collections.
  • User Agent Parser — Analyze client browser headers and verify User-Agent string parsing.

Frequently asked questions

Why does my request fail in the browser but work with curl?

CORS is a common cause: the target must allow cross-origin browser requests. Invalid URLs, DNS or TLS failures, network errors, and server responses can also cause failure. Compare the displayed error and test against an API you control; exported cURL commands can help isolate browser CORS behavior.

Can I send a JSON body?

Yes. Choose POST, PUT, or PATCH, keep the Content-Type: application/json header, and type the JSON in the body field. GET requests never send a body.

How do I add an Authorization header?

Add a header row with key Authorization and value such as Bearer <token>. The header is included in the request and in the Copy cURL output.

Does the tool store my requests?

The quick-request method preference can remain in local storage, while URL, headers, and body stay in tab memory. Collections also stay in memory until you export JSON; reloading clears them.

Can I run any JavaScript in a response test?

No. The collection runner accepts only documented status, response-body type, and body-property existence assertions. Test text is parsed as data and unsupported expressions do not execute.