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=192.168.1.1&type=2&type=1&action=%C1%AC%BD%D3%CD%F8%C2%E7” –cookie-jar fee.cookie example.com/login.jsp In order to use the cookie, we can command below to read and use this cookie. curl –cookie fee.cookie –referer -d “http://example.com/user.jsp?ip=192.168.1.1& amp;type=2” You can find more details […]
Continue reading…