cURL

cURL

Command line tool and library for transferring data with URLs

Category
Network
License
MIT
Platforms
Windows macOS Linux
Released
1998
Path
c:\curl\curl.exe
Benefits
Free, thread-safe, IPv6 compatible, feature rich, well supported and fast.
Notes
All documentation is available in markdown format.
Used by
Adobe, Altera, AOL, Apple, AT&T, BBC, Blackberry, BMW, Bosch, Broadcom, Chevrolet, Cisco, Comcast, Facebook, Google, Hitachi, Honeywell, HP, Huawei, HTC, IBM, Intel, LG, Mazda, Mercedes-Benz, Microsoft, Motorola, NASA, Netflix, Nintendo, Oracle, Panasonic, Philips, Pioneer, RBS, Samsung, SanDisk, SAP, SAS Institute, SEB, Sharp, Siemens, Sony, Spotify, Sun, Swisscom, Tomtom, Toshiba, VMware, Xilinx, Yahoo, Yamaha
Version
Latest known: 8.20.0 (2025-06-04)

Examples

1. Send an SMS text message via Twilio using CURL and save server response to a JSON file.

curl.exe https://api.twilio.com/2010-04-01/Accounts/#TwilioAccountSID#/Messages.json -X POST --data-urlencode "To=+1#Phone#" --data-urlencode "From=+#TwilioFromNumber#" --data-urlencode "Body=#MessageText#" --data-urlencode "statusCallback=#CallbackURL#?id=#ID#" -u #TwilioAccountSid#:#TwilioAuthToken# >#TwilioWorkDir#\#ID#.json

2. Returns SSL information (connecting to IP of server identified using local DNS)

curl.exe -s -verbose -A "CustomUserAgent" https://www.adobe.com/robots.txt --stderr - 2>&1

3. Returns SSL information (connecting to IP of server identified using remote DNS)

curl.exe -s -verbose --resolve www.adobecoldfusioncom:443:8.8.8.8 -A "" https://www.adobe.com/robots.txt --stderr - 2>&1

4. Pass a custom hostname, but use the target IP address in the URL.

curl.exe --header "Host: www.example.com" http://127.0.0.1/

5. Load testing (command line from https://www.petefreitag.com/blog/curl-load-testing/)

curl.exe https://www.google.com/ -o /dev/null -w "Response %{http_code} %{time_total}s\n" -s & sleep 1

Try it

Agree to terms to run demos.