xref: /curl/docs/cmdline-opts/negotiate.md (revision e7219c2b)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: negotiate
5Help: Use HTTP Negotiate (SPNEGO) authentication
6Protocols: HTTP
7Category: auth http
8Added: 7.10.6
9Multi: mutex
10See-also:
11  - basic
12  - ntlm
13  - anyauth
14  - proxy-negotiate
15Example:
16  - --negotiate -u : $URL
17---
18
19# `--negotiate`
20
21Enable Negotiate (SPNEGO) authentication.
22
23This option requires a library built with GSS-API or SSPI support. Use
24--version to see if your curl supports GSS-API/SSPI or SPNEGO.
25
26When using this option, you must also provide a fake --user option to activate
27the authentication code properly. Sending a '-u :' is enough as the username
28and password from the --user option are not actually used.
29