Forum Discussion

MDPF52_180608's avatar
MDPF52_180608
Icon for Nimbostratus rankNimbostratus
Feb 03, 2015

iRule Truncated string concatenation output

Hi DevCentral,

 

I have a question for you, How i can save in a variable the result of three variables separated by the character ";" without any truncate issue ? If I use the following syntax:

 

set printout "$variable1;$variable2;$variable3"

 

and then save the value in a cookie created by the F5, the result save only the first variable of the $printout maybe because the character " ; " was not passed as a string.

 

Thanks in advance,

 

M.

 

1 Reply

  • Is there a specific reason, you wish to use ';' ? This is a reserved character especially for setting cookie values.

     

    You could use some other character to delimit the 3 values, assuming that is what you are attempting.

     

    If you do need the ';' then attempt to encode it as ';' or '&59'

     

    Best