blob: cc871b6e2f34ad9f963e2f8613c3be80101c8422 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: anyauth
4Help: Pick any authentication method
5Protocols: HTTP
6See-also: proxy-anyauth basic digest
7Category: http proxy auth
8Example: --anyauth --user me:pwd $URL
9Added: 7.10.6
10Multi: mutex
11---
12Tells curl to figure out authentication method by itself, and use the most
13secure one the remote site claims to support. This is done by first doing a
14request and checking the response-headers, thus possibly inducing an extra
15network round-trip. This is used instead of setting a specific authentication
16method, which you can do with --basic, --digest, --ntlm, and --negotiate.
17
18Using --anyauth is not recommended if you do uploads from stdin, since it may
19require data to be sent twice and then the client must be able to rewind. If
20the need should arise when uploading from stdin, the upload operation will
21fail.
22
23Used together with --user.