Hi,
I've noticed that when I use the -n flag in the curl command showed in sendreminders.sh I get a 401 error as a response, whereas if I don't use it I get a 200...
From the curl man:
-n, --netrc
Make curl scan the .netrc file in the user's home directory for login name and password.
This is typically used for FTP on Unix. If used with HTTP, curl enables user authentication.
See netrc(5) and ftp(1) for details on the file format.
Curl does not complain if that file does not have the right permissions (it should be neither world- nor group-readable).
The environment variable "HOME" is used to find the home directory.
Why is this flag used?
Thanks
Hi,
I've noticed that when I use the
-nflag in thecurlcommand showed insendreminders.shI get a 401 error as a response, whereas if I don't use it I get a 200...From the
curlman:Why is this flag used?
Thanks