How To Use wget with Basic Auth
erics, Posted June 9th, 2016 at 8:30:57pm
If you need to use wget to obtain the contents of a web page, but that page has either Basic or Digest Authentication enabled, use the following syntax to gain access:
wget --http-user=yourUserNameHere --http-password=yourSecretPasswordHere http://example.org/desired/path/
~or~
wget http://yourUserNameHere:yourSecretPasswordHere@yourSite.com/desired/path/
Leave Your Comment
All fields marked with "*" are required.