Difference between revisions of "CURL"

From wikieduonline
Jump to navigation Jump to search
Line 10: Line 10:
 
:<code>curl --cookie ./omefile_with_your_cookiese https://xyz.com/b</code>
 
:<code>curl --cookie ./omefile_with_your_cookiese https://xyz.com/b</code>
 
*<code>curl --header 'X-JFrog-Art-Api: 1234567890'</code>
 
*<code>curl --header 'X-JFrog-Art-Api: 1234567890'</code>
 +
* Upload a file:
 +
**  -T, --upload-file <file>
 +
** curl-u YOUR_USERNAME:YOUR_PASSWORD -T FILE_TO_UPLOAD https://yourpasswordprotectedpage.com/your_destionation
  
 
== Advance usage==
 
== Advance usage==

Revision as of 08:10, 16 December 2019

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

curl --user user:pass --cookie-jar ./somefile_with_your_cookies https://xyz.com/a
curl --cookie ./omefile_with_your_cookiese https://xyz.com/b

Advance usage



See also

  • http://man7.org/linux/man-pages/man1/curl.1.html
  • Advertising: