.netrcfile is typically stored in a user's home directory. (On Windows, curl will look for it with the name
defaultmatches 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:
.netrcto still work fine, curl will properly skip every definition done with
macdefthat it finds.
-n, --netrctells 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-optionalis similar to
--netrc, but this option makes the .netrc usage optional and not mandatory as the