wget2
wget2 copied to clipboard
Add support for Basic Access credentials in URLs
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.