How to Pass Username and Password in cURL Commands Safely?

7 Replies, 1692 Views

If you’re on Windows, you can use the Credential Manager to store your curl username password securely. Then, use a tool like `curl` with `--netrc-file` to pull the creds.

Alternatively, check out `curl`’s `--config` option. You can store your credentials in a config file and reference it in your command. Just make sure to set proper file permissions so no one else can access it.

Messages In This Thread



Users browsing this thread: 1 Guest(s)