Yaak Logo
Yaak
Docs/Migration Guides/Import cURL Commands

Found a cURL command in documentation or a tutorial? Yaak makes it easy to convert cURL commands into fully-configured requests with a single paste.

Paste cURL into URL Bar

The fastest way to import a cURL command:

  1. Copy a cURL command to your clipboard
  2. Click in Yaak’s URL bar (or create a new request)
  3. Paste the cURL command
  4. Yaak automatically converts it to a request
Import cURL from clipboard

Yaak parses the cURL command and populates:

  • HTTP method
  • URL and query parameters
  • Headers (including cookies)
  • Request body (form data, JSON, multipart)
  • Basic and digest authentication

Import Multiple cURL Commands

To import many cURL commands at once:

  1. Create a text file with cURL commands (one per line, or separated by newlines)
  2. Go to SettingsImport/ExportImport
  3. Select the text file
  4. Yaak creates a request for each cURL command

Supported cURL Options

Yaak recognizes these common cURL flags:

cURL Flag What It Does
-X, --request HTTP method (GET, POST, etc.)
-H, --header Request headers
-d, --data Request body data
--data-raw Raw request body
--data-binary Binary body data
--data-urlencode URL-encoded body data
-u, --user Basic authentication (username:password)
--digest Use digest authentication
-F, --form Multipart form data
-b, --cookie Cookie header
-G, --get Send data as query parameters
--url Explicit URL
--url-query Additional query parameters

Examples

Simple GET Request

curl https://api.example.com/users

POST with JSON Body

curl -X POST https://api.example.com/users \
  -H "Content-Type: application/json" \
  -d '{"name": "John", "email": "john@example.com"}'

Request with Authentication

curl -H "Authorization: Bearer your-token-here" \
  https://api.example.com/protected

Request with Basic Auth

curl -u username:password https://api.example.com/auth

Multipart Form Upload

curl -X POST https://api.example.com/upload \
  -F "file=@/path/to/file.pdf" \
  -F "description=My document"

Copy from Chrome DevTools

Yaak handles cURL commands exported from Chrome DevTools, including complex multipart form data with boundaries:

  1. Open Chrome DevTools → Network tab
  2. Right-click any request
  3. Select CopyCopy as cURL
  4. Paste into Yaak

Copy as cURL

Yaak also lets you copy any request as a cURL command to share with others:

  1. Right-click a request in the sidebar
  2. Select Copy as cURL
  3. Paste the command anywhere
Copy as cURL

Tips

  • Multi-line cURL — Yaak handles cURL commands with backslash line continuations
  • Escape sequences — Unicode (\uXXXX) and hex (\xXX) escapes are decoded automatically
  • Shell quoting — Both single and double quotes are supported, including $'...' syntax

Need Help?

If a cURL command doesn’t import correctly, check our troubleshooting guide or report the issue on GitHub.

Was this page helpful?

Loading...