xref: /curl/docs/cmdline-opts/basic.md (revision fe9f68fa)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: basic
5Help: HTTP Basic Authentication
6Protocols: HTTP
7Category: auth
8Added: 7.10.6
9Multi: mutex
10See-also:
11  - proxy-basic
12Example:
13  - -u name:password --basic $URL
14---
15
16# `--basic`
17
18Use HTTP Basic authentication with the remote host. This method is the default
19and this option is usually pointless, unless you use it to override a
20previously set option that sets a different authentication method (such as
21--ntlm, --digest, or --negotiate).
22
23Used together with --user.
24