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