Skip to main content

rawops.dev

Skip to tool content

cURL Command Builder

request.sh
curl \
  -L

Request

Headers

No custom headers. Click "Add" to add one.

Authentication

Body

SSL/TLS

Connection & Output

Recipes

What is cURL?

cURL (Client URL) is a command-line tool for transferring data using various protocols, most commonly HTTP/HTTPS. It's installed by default on virtually every Linux, macOS, and modern Windows system. cURL is the de facto standard for testing APIs, downloading files, and debugging HTTP connections.

Common cURL Options

FlagDescription
-X METHODHTTP method (GET, POST, PUT, DELETE)
-H "Header: Val"Add custom header
-d 'data'Send request body
-u user:passBasic authentication
-LFollow redirects
-o fileWrite output to file
-kSkip SSL verification
-vVerbose output

Code Generation

This tool can convert your cURL command to equivalent code in Python (requests), JavaScript (fetch), Go (net/http), PHP (curl_*), Ruby (net/http), and Java (java.net.http). Select a language tab above the command output to see the generated code. You can also import an existing cURL command to populate all fields automatically.

Related Tools & Resources