sorry for my mistake Colin,
the main problem is with the decrypt part in http_request, the response encryption i think is working, but I´m in trouble to identify when a uri was previously encrypted or not, if the URI wasn´t encrypted before, there´s no reason for me to decrypt it. If I undertand well if the string wasn´t encrypted the decripted variable will be empty. Is that right?
other question,
on the decryption line i´m getting the error
Jan 29 15:23:44 tmm tmm[3789]: 01220001:3: TCL error: Rule irule_encrypt_uri - conversion error invoked from within "b64decode $uri"
it´s happening because the uri wasn´t previously encrypted or this function wasn´t supported this way, the line that invoke this error is this:
set decrypted [AES::decrypt [HTTP::cookie value "JSESSIONID"] [b64decode $uri]]
I think if I can put a control to define when a uri is encrypted I can solve the problem easily.