Author

Christopher Marshall (christopherlmarshall@yahoo.com)

Raw Notes on Curl

# get the html from a url:
curl http://www.somesite.com > index.html

# get the html from a password protected url:
curl -u name:password http://www.somesite.com > index.html

# get the html from a url while sending a cookie
curl -b "name=value" www.somesite.com

# record header options
# this is one way to see what cookies are being set
curl -D headers_and_cookies.txt http://www.somsite.com

# send cookies from file to url
curl -b cookie_file.txt http://www.somesite.com > index.html

# save recevied cookies in new_cookies.txt
curl -b tx_cookies.txt -c rx_cookies.txt http://www.somesite.com > index.html


hopeless_linux: RawNotes/curl (last modified 2007-07-01 16:01:00)