There are times when you may want to use a username and password with wget to download a page. wget has built-in switches to handle both the username and password.
To specify a username and password, use the
--password switches. This can be shown in the following example:
wget --user user --password pass http://example.com/
The man page for wget can be found below: