diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-01-07 17:44:42 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-01-09 14:16:41 +0100 |
commit | d1237ac906ae7e3cd7a22c3a2d3a135a97edfbf5 (patch) | |
tree | f1fe2fafb81a2bbbf72d717245e8bdd10e23c7af /docs | |
parent | 919baa580241ae1328d10aeaaf68be1351d41fcf (diff) | |
download | curl-d1237ac906ae7e3cd7a22c3a2d3a135a97edfbf5.tar.gz |
url: given a user in the URL, find pwd for that user in netrc
Add test 380 and 381 to verify, edited test 133
Reported-by: Manfred Schwarb
Fixes #8241
Closes #8243
Diffstat (limited to 'docs')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_NETRC.3 | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/docs/libcurl/opts/CURLOPT_NETRC.3 b/docs/libcurl/opts/CURLOPT_NETRC.3 index e0e6e6bd5..4ef78e90c 100644 --- a/docs/libcurl/opts/CURLOPT_NETRC.3 +++ b/docs/libcurl/opts/CURLOPT_NETRC.3 @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. +.\" * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms @@ -46,24 +46,20 @@ and similar things are not supported). libcurl does not verify that the file has the correct properties set (as the standard Unix ftp client does). It should only be readable by user. -\fIlevel\fP should be set to one of the values described below. - -.IP CURL_NETRC_OPTIONAL -The use of the \fI~/.netrc\fP file is optional, and information in the URL is -to be preferred. The file will be scanned for the host and user name (to find -the password only) or for the host only, to find the first user name and -password after that \fImachine\fP, which ever information is not specified. - -Undefined values of the option will have this effect. -.IP CURL_NETRC_IGNORED -The library will ignore the \fI~/.netrc\fP file. - -This is the default. -.IP CURL_NETRC_REQUIRED -The use of the \fI~/.netrc\fP file is required, and information in the URL is -to be ignored. The file will be scanned for the host and user name (to find +\fIlevel\fP is a long that should be set to one of the values described below. +.IP "CURL_NETRC_IGNORED (0)" +The library will ignore the \fI.netrc\fP file. This is the default. +.IP "CURL_NETRC_OPTIONAL (1)" +The use of the \fI.netrc\fP file is optional, and information in the URL is to +be preferred. The file will be scanned for the host and user name (to find the password only) or for the host only, to find the first user name and password after that \fImachine\fP, which ever information is not specified. +.IP "CURL_NETRC_REQUIRED (2)" +The use of the \fI.netrc\fP file is required, and any credential information +present in the URL is ignored. The file will be scanned for the host and user +name (to find the password only) or for the host only, to find the first user +name and password after that \fImachine\fP, which ever information is not +specified. .SH DEFAULT CURL_NETRC_IGNORED .SH PROTOCOLS |