mtobkes_64700
May 06, 2010Nimbostratus
Hashing header Values
Can someone please tell me if the LTM is able to perform hashing on values received in HTTP request headers? Please tell me if the following requirements are possible using an iRule?
1) When an HTTP request is received, the value of header X-GoodSource-Data is combined with the value of the userid cookie. If the userid cookie is not present, use "0" (zero) for userid.
2) The value is then hashed using HMAC-MD5.
3) The hashed value is then compared to the value of header X-GoodSource-Auth.
4) If the hashed value matches X-GoodSource-Auth, then the request is valid.
5) If the hashed value does not match X-GoodSource-Auth, then delete the True-Client-IP header.
Thanks,
myles