Daniel_H
Dec 04, 2019Nimbostratus
REST iControl account password issue if special characters used
I followed the guidelines indicated by Jason in:
https://devcentral.f5.com/s/articles/demystifying-icontrol-rest-part-6-token-based-authentication
and have REST basic authentication and token based calls working okay with one exception (I wrote the script in Perl - I know, I'm in the minority here) - if the account password being used has certain special characters (like '}') which are part of the JSON syntax, the authentication fails. For example:
{
"username": "test_user",
"password": "abcd1234}",
"loginProviderName": "tmos"
}
fails, but if the password was just 'abcd1234', it works. Is there a way of encoding the password (e.g. base64 like basic authentication header expects) so this doesn't fail?