Cookies, wget, & firefox

Modern Firefox versions store cookies in an sqllite database which makes them hard to extract.  There is an add-on that allows you to export, but that is overkill for me, since all i wanted to do was download a file using wget.

Awesomely, the man page showed a really easy wy to do this quickly....

View your cookies through Firefox's normal Preferences->Privacy->Cookies.
The name listed on the right is the Name.  Click on each name, and notice the value.  Put those together to get a command line that works:

wget --no-cookies --header "Cookie:  <NAME>=<VALUE>"    https://example.com/dir/file1

Voila.

Comments

Popular posts from this blog

Xubuntu Home Server on Dell XPS 13 9370

Cygwin + syslog-ng

Installing Fedora 21 on a (late 2014) Mac Mini