Forum Discussion
problems with b64decode decoding signed content
Is your uri url-encoded (after the b64-encoding)? I have seen similar error when trying to b64-decode an uri without first url-decoding it.
Url-encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits, to make it safe to be used in http requests. Trying to b64-decode url-encoded string can fail in this case.
For example b64encode will add padding depending on the length of the string to be encoded. Sometimes padding is "=" -characters in the end of the b64 string, and those are not good in the uri.
Example: set decoded_uri [b64decode [URI::decode [HTTP::uri]]
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com