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