wget2 icon indicating copy to clipboard operation
wget2 copied to clipboard

Add support for Basic Access credentials in URLs

Open markus456 opened this issue 6 months ago • 0 comments

wget supports HTTP Basic Access authentication credentials in the URLs but wget2 does not.

Here's an example URL that works elsewhere:

wget https://user:[email protected]/foo.tar.gz

A "workaround" to this is to pass the credentials with --password and --user:

wget --user=user --password=password https://my-site.net/foo.tar.gz

This isn't ideal as you have to be aware of the need for credentials and you can't simply process a URL even if the necessary credentials are included.

I tested both curl and Chrome and they seem to support this syntax for specifying credentials in the URL.

markus456 avatar Aug 19 '24 10:08 markus456