curl examples

 


basic curl command - this will render to the screen the contents of the google.com homepage (which is actually a 302 meta tag forwarding thing): curl http://www.google.com  

verbose, will show both request and response headers (good for debugging):  curl http://lc.yi.org -v 

 

Curl is a great tool for resuming downloads (among other things). 

- It can do things that the old GetRight download accelerator program used to do, except with the command line and it's open source. (LOL, is that what I used curl for in 2005!)
 


An example from somewhere in Red Hat's site:

curl -C - -O 'very_long_url'

[ do not include the quotes ]

Works in Linux, Windows, and practically everywhere else.

get curl here: http://curl.haxx.se/
 

tags: wget, curl, 

Related Scribbles:
  • wget examples
  • Web Browsers


  • ID: 703
    Author:
    leonard
    Date Updated:
    2014-01-25 22:00:37
    Date Created:
    2005-10-21 10:58:30

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> curl examples
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.