I remember crafting something similar along the lines of this (incorrect argument names almost assuredly):
curl $url_that_has_cookies -c -
That will save the cookies to stdout, and IIRC you can pipe them to curl. I've done similar stuff with wget along the lines of just saving the cookies and then loading them within a single command.
curl $url_that_has_cookies -c -
That will save the cookies to stdout, and IIRC you can pipe them to curl. I've done similar stuff with wget along the lines of just saving the cookies and then loading them within a single command.