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: proxy-user |
| 4 | Short: U |
| 5 | Arg: <user:password> |
| 6 | Help: Proxy user and password |
| 7 | Category: proxy auth |
| 8 | Example: --proxy-user name:pwd -x proxy $URL |
| 9 | Added: 4.0 |
| 10 | See-also: proxy-pass |
| 11 | Multi: single |
| 12 | --- |
| 13 | Specify the user name and password to use for proxy authentication. |
| 14 | |
| 15 | If you use a Windows SSPI-enabled curl binary and do either Negotiate or NTLM |
| 16 | authentication then you can tell curl to select the user name and password |
| 17 | from your environment by specifying a single colon with this option: "-U :". |
| 18 | |
| 19 | On systems where it works, curl will hide the given option argument from |
| 20 | process listings. This is not enough to protect credentials from possibly |
| 21 | getting seen by other users on the same system as they will still be visible |
| 22 | for a moment before cleared. Such sensitive data should be retrieved from a |
| 23 | file instead or similar and never used in clear text in a command line. |