Curl Command line commands

Curl command line commands

curl --trace-ascii debugdump.txt http://www.example.com/
# save output as file
curl -o filename.html http://www.example.com/
# follow redirect
curl -L yahoo.com

# Put request with header
curl -b cookie.txt \
	-X PUT \
# @test.png is a variable
	--data-binary "@test.png" \

     -H "Content-Type: image/png" \
     $URL \
	-O