In order to execute curl commands to endpoints with passwords that contain special characters, the cleanest way that I have found to do so is to Base64 encode the authentication string for curl and then pass an Authorization request header along with the request.
In this example the credentials are uid ‘rchapin’ and passwd ‘abc123!@#’. Normally we would pass this to curl as follows:
$ curl -u rchapin:abc123!@# -X GET https://some-endpoint:443
However, this will not work and the password will → Continue reading “How to Use Credentials That Contain Special Characters with curl”