← All features

Copy as code

From request to code in a click

Right-click any request to copy it as a curl command, or as code in seven languages, with the selected environment's values filled in.

Copy as cURL, or as C#, JavaScript, Python, Go, Java, PowerShell or a k6 load test script.

Ready to paste

Code that actually runs

  • Variables filled in for the environment you've selected, so the code runs as it is.
  • Sign-in carried over: Digest, AWS and Windows sign-in become curl's own options (--digest, --aws-sigv4, --ntlm).
  • Uploads and certificates too: multipart parts become -F options and client certificates --cert, but a passphrase is never written out.
  • Going the other way? Paste a curl command to import it as a request.
Copied as Python (requests)
import requests

response = requests.request(
    "GET",
    "https://api.example.com/users/1",
    headers={
        "Accept": "application/json",
    },
)
print(response.status_code, response.text)
Reqjet logo

Try it on your own requests

Free for Windows, macOS and Linux, and it opens the .http files you already have.