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:

Share this post

Post Comment