I am creating a crontab to execute a GET server action which is protected by a username and password based security provider. The crontab will execute a curl to do this.
What curl syntax do I need for specifying the username and password?
Actually, what would be even better is if I can just run the PHP file locally from on the server rather than via the HTTP path, so to say something like:
Is this calling an external providers API? Typically they will have documentation on how to authenticate, and usually a username/password is applied in the header as
Authorization | Bearer(or other) apikey/username:password (encored) or other…