Last active
July 2, 2019 06:16
-
-
Save vemuruadi/1877706e0aeae833f60a87b5a4c29e9d to your computer and use it in GitHub Desktop.
Command Line #Curl #Basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl is an easy to use command line tool to send & receive files, it supports almost most major protocols like FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, SMTP, TELNET in popular use. | |
Note: curl is actually 'see URL' | |
# Authentication | |
$ curl -u username:password http://example.com | |
# POST | |
$ curl --data "year=1979&month=march" http://example.com/wish | |
# GET | |
$ curl http://example.com/birthdays | |
# DELETE | |
$ curl -X "DELETE" http://example.com/wish/1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment