Developer tools

HTTPie Command Generator

HTTPie Command Generator

Generate an HTTPie (http) command from a request form.

About this tool

About HTTPie Command Generator

HTTPie's syntax is friendly once you know it: Header:value for headers, field=value for data, field@file for uploads. This page writes it for you. Fill in the method, URL, query parameters and headers, pick Basic (-a user:pass) or Bearer (-A bearer -a token) authorization, and choose a body. Multipart forms become --multipart with name=value and name@path items; JSON, URL-encoded and raw bodies are passed exactly with --raw so nothing is reinterpreted, with the Content-Type you chose. Every item is quoted safely for bash and zsh, special characters in field names are escaped, and long commands are split across lines with backslashes. Tick Follow redirects for --follow or Skip TLS verification for --verify=no. If you need the request elsewhere, the same form produces cURL, fetch, Axios, Python, Go and PHP. Nothing is sent from this page; run the command in your terminal with HTTPie 3.2 or later.

Built and maintained by Abhi JainUpdated

How to Generate an HTTPie Command

  1. 1

    Describe the request

    Choose the Method and URL; add Query parameters and Headers.

  2. 2

    Add auth and body

    Pick an Authorization type and a Body type and fill them in.

  3. 3

    Copy and run

    Copy the HTTPie command and run it in your terminal.

HTTPie Command Generator: questions and answers

How do I send JSON with HTTPie?

Use field=value items (strings) and field:=value (raw JSON), which HTTPie turns into a JSON object, or pass a complete body with --raw '{...}'. The generator uses --raw so your JSON is sent exactly.

How do I add headers in HTTPie?

Write them as Name:value items after the URL, for example http GET example.com Accept:application/json.

How do I upload a file with HTTPie?

http --multipart POST example.com/upload file@photo.jpg. Choose Multipart and tick File on the field.

What is the difference between HTTPie and cURL?

Both send HTTP requests from the terminal. HTTPie has a simpler syntax and formats responses; cURL is installed almost everywhere and supports far more protocols and options.