Forum Discussion

geekalicious_98's avatar
geekalicious_98
Icon for Nimbostratus rankNimbostratus
Dec 17, 2008

Is iRule able to read hexadecimal?

Hi guys,

 

 

I need to write a persist iRule but the sessionID is in hexadecimal. I've seen the irules and so far usually a HTTP::cookie exists "JSESSIONID"...So my question is when iRule reads the packets, does it have to be human readable form?

 

 

An example would be in the respond and request

 

 

043223579087654212457900987653211246789098765432124567899AB987667...

 

 

The structure is;

 

 

Code = 04

 

SessionID length = 32

 

SessionID = 23579087654212457900987653211246789098765432124567899AB987667

 

 

Based on this info, can iRules be used to read this hexadecimal code and persist based on it?

 

 

The traffic is HTTP but used on mobile phones so that why I've not been able to use programs like HTTPWatch to get the sniff result. So far, the best info I get is that it is in Hex and customer would like to persist base on that.

 

 

Thank you in advance.

 

1 Reply

  • Hi ,

     

    No it doesn't have to be human readable form. But the irule needs determine where to find the hex numbers in the packet so it can store it and use it as part of Universal Persistance much like in JSESSION examples you have seen.

     

     

    Can you tell us if it's contained within http header? If it is, what is the name of the header.

     

     

    Thanks,

     

    CB