How To Use wget with Basic Auth

Published Date Author: , 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/

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.