xref: /curl/docs/cmdline-opts/proxy-user.md (revision 6e494a23)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: proxy-user
5Short: U
6Arg: <user:password>
7Help: Proxy user and password
8Category: proxy auth
9Added: 4.0
10Multi: single
11See-also:
12  - proxy-pass
13Example:
14  - --proxy-user smith:secret -x proxy $URL
15---
16
17# `--proxy-user`
18
19Specify the username and password to use for proxy authentication.
20
21If you use a Windows SSPI-enabled curl binary and do either Negotiate or NTLM
22authentication then you can tell curl to select the username and password from
23your environment by specifying a single colon with this option: "-U :".
24
25On systems where it works, curl hides the given option argument from process
26listings. This is not enough to protect credentials from possibly getting seen
27by other users on the same system as they still are visible for a moment
28before cleared. Such sensitive data should be retrieved from a file instead or
29similar and never used in clear text in a command line.
30