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:
Voila.
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
Post a Comment