cURL

From wikieduonline
Revision as of 13:27, 19 February 2020 by Welcome (talk | contribs) (→‎Basic Usage)
Jump to navigation Jump to search

cURL[1] is a command-line tool for getting or sending data including files using URL syntax. cURL supports a range of common network protocols, currently including HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, LDAP, DAP, DICT, TELNET, FILE, IMAP, POP3, SMTP and RTSP.


Basic Usage

-s  Avoid showing progress bar
curl --user user:pass --cookie-jar ./somefile_with_your_cookies https://xyz.com/a
curl --cookie ./omefile_with_your_cookiese https://xyz.com/b


  • Upload a file:
curl -u YOUR_USERNAME:YOUR_PASSWORD -T FILE_TO_UPLOAD https://yourpasswordprotectedpage.com/your_destionation
-T, --upload-file <file>
curl -sD - -o /dev/null http://example.com[3]
-s  Avoid showing progress bar
-D  Dump headers to a file, but - sends it to stdout
-o /dev/null  Ignore response body

Advance usage



See also

Advertising: