Skip to content

Instantly share code, notes, and snippets.

@vemuruadi
Last active July 2, 2019 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vemuruadi/1877706e0aeae833f60a87b5a4c29e9d to your computer and use it in GitHub Desktop.
Save vemuruadi/1877706e0aeae833f60a87b5a4c29e9d to your computer and use it in GitHub Desktop.
Command Line #Curl #Basics
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