1. Computing & Technology

Discuss in my forum

Example uses of the command "curl"

A Brief Introduction

By , About.com Guide

See More About:
The following command retrieves the web page www.google.com:

curl http://www.google.com/ 
You can save the retrieved page to a file as follows:

curl -o file1.html http://www.google.com/ 
This is an example of downloading a file from an ftp server:

curl ftp://ftp.server1.com/file1.txt 
For more examples see the curl usage page. See the man page for a complete listing of command options.

©2012 About.com. All rights reserved.

A part of The New York Times Company.