I may have made a mistake on my end. Yes, both options can have the file without problems.
On 2/14/20, Tim Rühsen <[email protected]> wrote: > Definitely, just tested with wget 1.20.3: > > <no cookies.txt exists> > $ wget --load-cookie=cookies.txt --save-cookies=cookies.txt google.com > $ sum cookies.txt > 50297 1 > > $ wget --load-cookie=cookies.txt --save-cookies=cookies.txt google.de > $ sum cookies.txt > 27483 1 > > What version of wget do you use ? > > Regards, Tim > > On 14.02.20 23:11, Peng Yu wrote: >> Can the options for --load-cookies and --save-cookies be the same? It >> seems that there are problems when they are the same. When I change >> them to be different, then it is OK. >> >> >> On 2/14/20, Tim Rühsen <[email protected]> wrote: >>> Yes, you can combine the options as you assumed. >>> >>> Not sure why the cookies.txt isn't updated. You can run with --debug and >>> maybe that gives you a hint. >>> >>> Regards, Tim >>> >>> On 14.02.20 22:46, Peng Yu wrote: >>>> Hi, >>>> >>>> I want to load cookies at the beginning of wget run and save the >>>> cookies at the finish. >>>> >>>> I specified the following options. But it seems that the timestamp of >>>> cookies.txt file is not changed at the finish of wget run. Is it >>>> normal? Or if the cookies.txt file is not changed, the time stamp will >>>> not be updated? Thanks. >>>> >>>> --load-cookies cookies.txt --keep-session-cookies --save-cookies >>>> cookies.txt >>>> >>> >>> >> >> > > -- Regards, Peng
