bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are --load-cookies and --save-cookies effective at the same time?


From: Tim Rühsen
Subject: Re: Are --load-cookies and --save-cookies effective at the same time?
Date: Fri, 14 Feb 2020 23:16:01 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2

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 <address@hidden> 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
>>>
>>
>>
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]