Home
last modified time | relevance | path

Searched refs:netrc (Results 1 – 25 of 67) sorted by relevance

123

/third_party/python/Doc/library/
Dnetrc.rst2 :mod:`netrc` --- netrc file processing
5 .. module:: netrc
6 :synopsis: Loading of .netrc files.
11 **Source code:** :source:`Lib/netrc.py`
15 The :class:`~netrc.netrc` class parses and encapsulates the netrc file format used by
19 .. class:: netrc([file])
21 A :class:`~netrc.netrc` instance or subclass instance encapsulates data from a netrc
23 no argument is given, the file :file:`.netrc` in the user's home directory --
29 the :file:`.netrc` file will raise a :exc:`NetrcParseError` if the file
33 programs that use :file:`.netrc`.
[all …]
/third_party/curl/docs/cmdline-opts/
Dnetrc-file.md4 Long: netrc-file
5 Help: Specify FILE for netrc
8 Mutexed: netrc
12 - netrc
16 - --netrc-file netrc $URL
19 # `--netrc-file`
21 This option is similar to --netrc, except that you provide the path (absolute
22 or relative) to the netrc file that curl should use. You can only specify one
23 netrc file per invocation.
25 It abides by --netrc-optional if specified.
Dnetrc-optional.md4 Long: netrc-optional
5 Help: Use either .netrc or URL
6 Mutexed: netrc
11 - netrc-file
13 - --netrc-optional $URL
16 # `--netrc-optional`
18 Similar to --netrc, but this option makes the .netrc usage **optional**
19 and not mandatory as the --netrc option does.
Dnetrc.md4 Long: netrc
6 Help: Must read .netrc for user name and password
9 Mutexed: netrc-file netrc-optional
12 - netrc-file
16 - --netrc $URL
19 # `--netrc`
21 Makes curl scan the *.netrc* file in the user's home directory for login name
23 enables user authentication. See *netrc(5)* and *ftp(1)* for details on the
28 On Windows two filenames in the home directory are checked: *.netrc* and
32 A quick and simple example of how to setup a *.netrc* to allow curl to FTP to
/third_party/python/Lib/test/
Dtest_netrc.py1 import netrc, os, unittest, sys, tempfile, textwrap
17 return netrc.netrc(temp_filename)
122 nrc = netrc.netrc()
126 self.assertRaises(netrc.NetrcParseError, netrc.netrc)
132 self.assertRaises(FileNotFoundError, netrc.netrc)
135 self.assertRaises(FileNotFoundError, netrc.netrc,
157 nrc = netrc.netrc()
/third_party/curl/tests/data/
Dtest3817 netrc
38 # using the netrc is mandatory.
41 netrc-optional lets URL creds override netrc
45 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://mary:drfrank@%HOSTIP:%FTPPORT/
47 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6805 netrc
23 netrc with quoted password but missing end quote
26 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER http://user1@http.example/
28 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6845 netrc
30 netrc with no login
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6855 netrc
30 netrc with no login - provided user
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://user@%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest4946 netrc
25 skip 'macdef' when parsing netrc
28 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
30 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest1347 netrc
37 FTP (optional .netrc; programmatic user/passwd) dir list PASV
40 # -u overrides netrc which overrides the URL
42 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER -u romulus:rhemus ftp://mary:mark@%HOSTIP:%F…
44 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6825 netrc
30 netrc with multiple logins - pick first
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://user1@%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6835 netrc
30 netrc with multiple logins - pick second
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://user2@%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6795 netrc
34 netrc with quoted password
37 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
39 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest13045 netrc
17 netrc
20 netrc parsing unit tests
23 %LOGDIR/netrc%TESTNUMBER
25 <file name="%LOGDIR/netrc%TESTNUMBER">
Dtest3807 netrc
37 pick netrc password based on user name in URL
41 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://mary@%HOSTIP:%FTPPORT/
43 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest1327 netrc
37 FTP (optional .netrc; user/passwd supplied) dir list PASV
40 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://mary:mark@%HOSTIP:%FTPPORT/
42 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest1317 netrc
38 FTP (optional .netrc; user/no pass) dir list PASV
41 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://user2@%HOSTIP:%FTPPORT/
43 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest1307 netrc
37 FTP (optional .netrc; no user/pass) dir list PASV
40 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/
42 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest20397 netrc
37 FTP (optional .netrc with 'default' override; no user/pass) dir list PASV
40 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/
42 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest2579 netrc
71 HTTP Location: following with --netrc-optional
74 …e.com/want/%TESTNUMBER -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file %LOGDIR/netrc%…
79 # netrc auth for two out of three sites:
80 <file name="%LOGDIR/netrc%TESTNUMBER">
Dtest1337 netrc
37 FTP compulsory .netrc; ignore passwd in URL
40 -n --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://mary:mark@%HOSTIP:%FTPPORT/
42 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest4955 netrc
35 user+password in URL with optional netrc
40 http://foo%40bar:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER --netrc-optional
/third_party/curl/docs/libcurl/opts/
DCURLOPT_NETRC.md15 CURLOPT_NETRC - enable use of .netrc
28 user names and passwords from your *~/.netrc* file, relative to user names
51 libcurl ignores the *.netrc* file. This is the default.
55 The use of the *.netrc* file is optional, and information in the URL is to
62 The use of the *.netrc* file is required, and any credential information
70 The **.netrc** file format is simple: you specify lines with a machine name
81 Provides credentials for a host called **name**. libcurl searches the .netrc
103 Note that if this token is present in the .netrc file you really should make
109 rest of the .netrc to still work fine, libcurl properly skips every definition
DCURLOPT_NETRC_FILE.md15 CURLOPT_NETRC_FILE - filename to read .netrc info from
28 containing the full path name to the *file* you want libcurl to use as .netrc
30 for a .netrc file in the current user's home directory.
53 curl_easy_setopt(curl, CURLOPT_NETRC_FILE, "/tmp/magic-netrc");

123