Non-alphanumeric character problem in cOS Core HTTPPosterLast modified on 13 Feb, 2023. Revision 9
This short article will describe how to solve problems when using the HTTPPoster with non-alphanumeric characters in the specified URL.
|Up to date for||
cOS Core 14.00.06
cOS Core 9.x
We have a firewall using nearly identical lines in HTTPPoster, where only the username and password is different. One of them refuses to login. The only difference is that the one that does not work has non-alphanumeric characters like ‘$’ in the password or username.
Encode such non-alphanumeric characters using URL encoding. This is done by replacing the character with a “%” symbol followed by its two-digit hexadecimal representation.
Example of some characters that need to be URL encoded
|Character||What to write|
Username alice, password very@secret%pw at host foo.com would become http://alice:firstname.lastname@example.org/
No related articles found.