bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] adding --filename-exclude-url-query


From: Tim Rühsen
Subject: Re: [Bug-wget] adding --filename-exclude-url-query
Date: Tue, 15 Oct 2019 16:52:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

We have that for Wget2:

--cut-file-get-vars   Cut HTTP GET vars from file names. (default: off)
--cut-url-get-vars    Cut HTTP GET vars from URLs. (default: off)


### `--cut-file-get-vars`

  Remove HTTP GET Variables from filenames.
  For example "main.css?v=123" will be changed to "main.css".

  Be aware that this may have unintended side effects, for example
"image.php?name=sun" will be changed
  to "image.php". The cutting happens when saving the file, after
downloading.

  File names obtained from a "Content-Disposition" header are not
affected by this setting (see --content-disposition),
  and can be a solution for this problem.

  When "--trust-server-names" is used, the redirection URL is affected
by this setting.


### `--cut-url-get-vars`

  Remove HTTP GET Variables from URLs.
  For example "main.css?v=123" will be changed to "main.css".
  Be aware that this may have unintended side effects, for example
"image.php?name=sun" will be changed
  to "image.php". The cutting happens before adding the URL to the
download queue.


Regards, Tim

On 9/29/19 12:29 AM, bugged buggy wrote:
>    i was in a situation where the website generates different access token
>    for the same file during each refresh , which was specified in the url
>    query , so wget wasn't detecting that the files already exists ,
>    causing tons of duplications each with different url query
> 

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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