Skip to content
Toolbento

HTTP request code generator

Build a request from a form and get it as cURL, fetch, Axios, Python, Go, PHP or HTTPie code.

Everything stays on this device

HTTP request code generator runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Method
Method

Language

Missing a feature or found a bug in HTTP request code generator? Tell me on X (@_andrewtran) or by email.

How to use HTTP request code generator

  1. Choose the method and enter the URL.
  2. Add headers, one per line, and a body if the method takes one.
  3. Choose a language and copy the code.

Questions and answers

Does this send the request?

No. It only writes the code. Nothing is sent from this page, so you can safely include real tokens.

How is the content type chosen?

If you set a Content-Type header, that is used. Otherwise a body that is valid JSON is sent as JSON, and anything else as plain text.

Esc

Loading tools