bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] wishlist: configure ~/.wget-hsts by environment variable


From: Félix Sipma
Subject: Re: [Bug-wget] wishlist: configure ~/.wget-hsts by environment variable
Date: Fri, 10 Mar 2017 12:50:26 +0100
User-agent: NeoMutt/20170113 (1.7.2)

On 2017-03-10 12:17+0100, Tim Ruehsen wrote:
> On Thursday, March 9, 2017 5:47:00 PM CET Félix Sipma wrote:
>> Hi!
>> 
>> Would it be possible to add an environment variable to set the location of
>> the hsts-file (by default set to "~/.wget-hsts"), in addition to the
>> existing --hsts-file mechanism?
> 
> You are aware that you can put all options as 'commands' into a config file !?
> The default is ~/.wgetrc but you can override it with WGETRC env variable.
> If that isn't enough, you can override the above with --config=<file> (or 
> --no-
> config).

No, I didn't know that, thanks! There appear to be no mention of WGETRC on the
Debian sid version of wget.

>> It would help, to have a home free of configuration and data files. I try to
>> use $XDG_CONFIG_HOME and $XDG_DATA_HOME, but as wget does not seem to use
>> these variables yet, it would probably be simpler to just add an
>> environment variable for the hsts-file.
> 
> Use WGETRC and specify 'hstsfile' in that config file to point somewhere 
> outside 
> the home dir.

OK. I found no documentation about this 'hstsfile' command, though.

https://www.gnu.org/software/wget/manual/wget.html#Startup-File


It's hard to see if the config is valid or not, or even if it is read, as wget
does not seem to return error if I set "hsts_file", for example.

-- 
Félix Sipma

Attachment: signature.asc
Description: PGP signature


reply via email to

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