Skip to content

Instantly share code, notes, and snippets.

@joshschmelzle
Created December 1, 2016 15:57
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 joshschmelzle/df050b375d5a64b5dd0f840ee98662ec to your computer and use it in GitHub Desktop.
Save joshschmelzle/df050b375d5a64b5dd0f840ee98662ec to your computer and use it in GitHub Desktop.

Simple CURL commands

Curl is a tool to transfer data from or to a server. It supports a busload of protocols and useful tricks. Here is how to simply use CURL.

Get the main page from Google's web-server:

curl http://www.google.com

Using a proxy and getting the main page from Google's web-server:

curl -x proxy.host.com:80 http://www.google.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment