What is cURL?
cURL(Client URL) is a command-line tool for making HTTP requests and transferring data over network protocols. Created by Daniel Stenberg in 1997, it's now pre-installed on macOS, most Linux distributions, and Windows 10+. cURL is the de facto standard for testing APIs, debugging network issues, and automating HTTP requests in scripts and CI/CD pipelines.
cURL supports HTTP, HTTPS, FTP, FTPS, SCP, SFTP, LDAP, and many other protocols. Its power comes from a vast set of command-line options that control every aspect of the request — method, headers, body, authentication, redirects, timeouts, SSL settings, proxies, and more.
How to Use This cURL Builder
- Enter the URL and select the HTTP method (GET, POST, PUT, etc.).
- Add headers as key-value pairs. Toggle individual headers on/off with checkboxes.
- For POST/PUT/PATCH, select a body type (JSON, form data, or raw) and enter the content. Content-Type headers are added automatically.
- Configure authentication — Basic (username/password), Bearer token, or API key.
- Set additional options: follow redirects, verbose mode, timeouts, cookies, proxy, SSL settings.
- Copy the generated command and paste it into your terminal.
Why Use a cURL Command Builder?
- Avoid syntax errors: cURL has dozens of flags with specific quoting requirements. A visual builder eliminates typos and escaping mistakes.
- Discover options: See all available options at a glance instead of reading man pages.
- Import & modify: Paste a cURL command from browser DevTools (right-click → Copy as cURL) and easily modify it.
- Share with teams: Generate clean, well-formatted cURL commands for API documentation and bug reports.
- Learn cURL: See how form fields map to cURL flags — a great way to learn the command-line tool.
Common cURL Examples
Simple GET Request
curl 'https://api.example.com/users'
POST with JSON Body
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"name": "John", "email": "john@example.com"}' \
'https://api.example.com/users'With Bearer Token Authentication
curl -H 'Authorization: Bearer eyJhbGciOiJIUzI1Ni...' \ 'https://api.example.com/protected'
Download a File
curl -L -o report.pdf \ 'https://example.com/reports/latest.pdf'