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
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