.netrc
file is typically stored in a user's home directory. (On Windows, curl will look for it with the name _netrc
)."
) and support the escaped special letters \"
, (newline), (carriage return), and (TAB). Quoted strings are the only way a space character can be used in a user name or password.default
matches any name. There can be only one default token, and it must be after all machine tokens. To provide a default anonymous login for hosts that are not otherwise matched, add a line similar to this in the end:.netrc
to still work fine, curl will properly skip every definition done with macdef
that it finds.-n, --netrc
tells curl to look for and use the .netrc file.--netrc-file [file]
is similar to --netrc
, except that you also provide the path to the actual file to use. This is useful when you want to provide the information in another directory or with another file name.--netrc-optional
is similar to --netrc
, but this option makes the .netrc usage optional and not mandatory as the --netrc
option.