These wget recipes show you how to access resources that require basic HTTP authentication. To do that, use the --user
and --password
options.
Download a Protected File
wget --user=bob --password=12345 https://example.com/secret.zip
This recipe uses --user
and --password
to authenticate with the server before downloading. These values are sent in the Authorization
HTTP header using basic authentication.
Created by Browserling
These wget recipes were written down by me and my team at Browserling. We use recipes like this every day to get things done and improve our product. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!
Secret message: If you love my wget recipe, then I love you, too! Use coupon code WGETLING to get a discount at my company.