I know that using cURL
I can see my received cookies / headers by using
curl --head www.google.com
And I know that I can add headers to my request using
curl --cookie "Key=Value" www.google.com
I am currently working on testing an issue which requires persistent cookies, and there can be a lot of them.
How can I efficiently preserve cookies between two
cURL
requests?
If possible using a temporary file for storage.