Re: overrider or append entries in cookie file with --header "cookie: xxx"?

2020-02-15 Thread Tim Rühsen
No, wget won't override a cookie from cookies.txt with -H. That's when shell scripting comes into play. E.g. pipe your cookies.txt through grep -v or sed to remove a certain line (or several lines) and save it temporarily in e.g. cookies2.txt. Then run wget with cookies2.txt. After that, either

overrider or append entries in cookie file with --header "cookie: xxx"?

2020-02-15 Thread Peng Yu
Hi, I have a cookie file. I'd like to override an entity in it or specific an extra cookie entry with -H. But it seems that wget just ignore what is in the cookie file if -H "cookie: xxx" is specified. Is there a way to override entries in the cookie file? Thanks. $ wget --load-cookies