How to use HTTP Basic authentication with cURL

To access sites that use HTTP Basic authentication with curl, use command

curl -u USERNAME_HERE:PASSWORD_HERE http://domain.extn

Or

curl -u USERNAME_HERE http://domain.extn

If you don’t specify password, curl will promt for password.

See curl

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *