Forum Discussion
8 Replies
Sort By
- The_BhattmanNimbostratusThere is a command that can change string to hex
- karamelo25_9966NimbostratusBut I need to convert only special characters of a string to hex encoding. Do you know how I could do it? Thanks
- The_BhattmanNimbostratusI am not sure where I follow? Do you need to convert them in general or do you need to convert them problematically in an iRule?
- karamelo25_9966NimbostratusI have to make a irule where the value of a query parameter can contain some special character and it is necessary to convert these characters into hex.
- The_BhattmanNimbostratusCan you post and example of the full string with the querry. Also when it's converted where are you planning to use it?
- karamelo25_9966NimbostratusI have to translate the following rewrite (apache) to irule:
- hooleylistCirrostratusI'd guess that's doing URL encoding--not base64 encoding. You could use [URI::encode [HTTP::header User-Agent]] to URL encode the User-Agent header value.
- hooleylistCirrostratusAll of the references I could find online for the Apache mod_rewrite escape functionality indicates they use URL (aka percent) encoding. The regex there doesn't quite make sense though as it's only going to match a URI starting with vegetables. A relative URI must start with a forward slash and an absolute URI must start with the protocol.