Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

curl

Command line data transfer tool

Syntax

curl [OPTION]... [URL]...

Common Options

-XSpecify HTTP method
-HAdd request header
-dSend POST data
-oOutput to file
-LFollow redirects
-IFetch headers only
-vVerbose output

Common Examples

curl https://api.example.com

GET request

curl -X POST -d "key=value" URL

POST request

curl -H "Authorization: Bearer token" URL

Request with auth header

curl -o file.zip URL

Download file

Related Commands

Related Tools

More Code & Dev Tools