Forum Discussion

maximillean_953's avatar
Icon for Nimbostratus rankNimbostratus
Apr 07, 2014

Example Irule

Hi, I try to translate a content switching rule from netscaler to F5 Irule for migration which still keeps going on.

I need a rule that if first 2 path of uri /cookies/set/xyz

then rule does 302 temp redirect to with 3rd path string pasted to Set-cookie header member as Set-Cookie:TESTROUTER=xyz; and the rest mentioned below example.

curl -I
HTTP/1.1 302 Temporary Redirect
Set-Cookie:TESTROUTER=xyz; path=/; expires=Tue, 08 Apr 2014 12:38:25 GMT;

Any idea how can i do this? I try to do couple things but did not succeed yet

1 Reply

  • If you are on 11.4+, this sounds like a good use case for CPM (what F5 turned HTTP classes into).