Skip to content

Instantly share code, notes, and snippets.

@AaronPhalen
Created October 28, 2015 20:35
Show Gist options
  • Save AaronPhalen/b6345493272b25af5cd4 to your computer and use it in GitHub Desktop.
Save AaronPhalen/b6345493272b25af5cd4 to your computer and use it in GitHub Desktop.
Brief introduction to cURL and examples
Author: Aaron R. Phalen | Twitter: @aaron_phalen | Email: [email protected]
A Curl Introduction With Examples
=================================
Definition: cURL is a software package on linux that utilizes a command line
interface to transfer data via an URL syntax. cURL supports ports other than
80 (HTTP), such as FTP, IMAP, POP3, SFTP, and SMTP.
1. Download a file with cURL.
curl http://www.google.com --> will get contents of url and display to stdout.
2. Download and save contents to file.
curl http://www.google.com > sample.txt --> write contents of url to sample.txt file.
3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment