How to use cURL from command line with cookies?

The key thing is to log the cookie in a file, this can be done with parameter cookie-jar, below is an example,

curl -d "user=test&pass=111111&ip=" –cookie-jar fee.cookie

In order to use the cookie, we can command below to read and use this cookie.

curl –cookie fee.cookie –referer -d " amp;type=2"

You can find more details about cURL and the tutorial here, it covers most of what you are looking for:

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.