[curl] Send an HTTP Basic authentication request

Created on November 30, 2026

Use -u to supply credentials for HTTP Basic authentication. Write the username and password together with a colon between them.

curl -X GET -u "dummy_user:dummy_password" https://example.com/basic_auth/
Shell command