curl using cookie

Here is some example of using curl to login to site, use cookie to do further requests.

curl -k --cookie-jar ./cookies_hotfile --data "returnto=%2F&user=USERNAME_HERE&pass=PASSWORD_HERE" http://site.com/login.php
curl -L -O --cookie ./cookies_hotfile http://site.com/dl/5222/4444/file.zip.html

See curl

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *