Forcing cURL to get a password from the environment

This bash solution appears to best fit my needs. It’s decently secure, portable, and fast. #!/bin/bash SRV=”example.com” URL=”https://$SRV/path” curl –netrc-file <(cat <<<“machine $SRV login $USER password $PASSWORD”) “$URL” This uses process substitution (<( command ) runs command in a sub-shell to populate a file descriptor to be handed as a “file” to the parent command, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)