5 ms·
I have had mostly good success using wget and a cookie.txt file exported from chrome with https://chrome.google.com/webstore/detail/cookietxt-export/lopabhfecdf
by emmelaich 13y ago
I have had mostly good success using wget and a cookie.txt file exported from chrome with https://chrome.google.com/webstore/detail/cookietxt-export/lopabhfecdfhgogdbojmaicoicjekelh?hl=en https://chrome.google.com/webstore/detail/cookietxt-export/l...
But it's not so convenient.
I'll have to try this in future.
- bloometal 13y agoThis is awesome. But, does anyone know how to do this with `--save-cookies` command with wget?
- codygman 13y agoI 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.
- joshmn 13y agoEven better, Chrome's developer options allows you to right click in the HAR and do a "Copy as CURL" which includes all the bells and whistles (headers, cookies) to throw it into terminal and start hacking away.