HTTPStatus Reference

Describe a request once — get curl, Java HttpClient, RestTemplate, WebClient, RestClient and fetch. Nothing is sent anywhere.

In-browser & private
Advertisement
Query parameters
Headers
Fill in a URL to see the code.
Method GET Headers 0 Params 0 Body 0 B

About this builder

It generates code rather than firing the request. That is a deliberate limit, not a missing feature: a browser cannot call an arbitrary API from a page like this — the target would have to return CORS headers naming this site — so a "send" button would fail on most real endpoints and succeed on a misleading few.

  • Six targets from one description: curl, Java 11+ HttpClient, Spring RestTemplate, reactive WebClient, Spring 6 RestClient, and browser fetch.
  • Import curl reads a command you copied from your browser's network tab (Copy as cURL) and fills the form, which is the quickest way to turn something that works in a browser into Java.
  • Quoting is handled. Bodies and header values are escaped for each language, so a JSON body with quotes in it does not break the generated snippet.
  • Nothing is stored or transmitted. Tokens you paste stay in the page — but remember the generated code contains them, so redact before sharing it.

More free tools