Detailed description of Curl Command parameters in LinuxShell # Basic usage (with sed/awk/grep) # download and save # save through proxy # save
# Basic usage (with sed/awk/grep) $ curl http: // s.worthsee.com # download and save $ curl http://s.worthsee.com > Index.html $ curl-o index.html http://s.worthsee.com $ Curl-O http://s.worthsee.com /Target.tar.gz # use the proxy $ curl-x 123.45.67.89: 1080-o page.html http://s.worthsee.com # Save cookie $ curl-x 123.45.67.89: 1080-o page1.html-D cookie0001.txt http://s.worthsee.com # Use cookie $ curl-x 123.45.67.89: 1080-o page1.html-D cookie0002.txt-B cookie0001.txt http://s.worthsee.com # Simulate the browser $ curl-A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"-x123.45.67.89: 1080-o page.html-D cookie0001.txt http://s.worthsee.com # Counterfeit referer $ curl-A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"-x123.45.67.89: 1080-e "mail.worthsee.com"-o page.html-D cookie0001.txt http://s.worthsee.com # Loop download $ curl-O http://s.worthsee.com /~ Zzh/screen [1-10]. JPG # loop (matching) Download $ curl-O http://s.worthsee.com /~ {Zzh, nick}/[001-201]. JPG #> like zzh/001.JPG# # Download $ curl-o %2_%1.jpg in a loop (reference) http://s.worthsee.com /~ {Zzh, nick}/[001-201]. JPG # like> 0020.zzh.jpg # resumable Upload $ curl-c-O http://s.worthsee.com /~ Zzh/screen1.JPG # multipart download $ curl-r 0-10240-o "zhao. part1" http://s.worthsee.com /~ Zzh/zhao1.mp3 & \ $ curl-r 10241-20480-o "zhao. part1" http://s.worthsee.com /~ Zzh/zhao1.mp3 & \ $ curl-r 20481-40960-o "zhao. part1" http://s.worthsee.com /~ Zzh/zhao1.mp3 & \ $ curl-r 40961--o "zhao. part1" http://s.worthsee.com /~ Zzh/zhao1.mp3... $ cat zhao. part *> zhao.pdf # GET Upload $ curl http://www.worthsee.com/login.cgi?user=nickwolfe&password=12345##POST Upload $ curl-d "user = nickwolfe & password = 12345" http://www.worthsee.com/login.cgi##POST File upload $ curl-F upload = @ localfile-F btn_name = btn_value http://s.worthsee.com /~ Zzh/up_file.cgi