Forum Discussion

vlavergne_12825's avatar
vlavergne_12825
Historic F5 Account
Mar 01, 2005

Will iRule ICAP ??

I have some questions regarding the BIG-IP capacity to analyse the ICAP protocol. I know ICAP is somehow similar to HTTP but I am wondering if

 

 

1*/ BIG-IP is able to analyse ICAP messages and persist based on an ICAP Header where the user information is stored. My understanding is YES you never know !

 

 

2*/ If BIG-IP can respond in place of the server to ICAP OPTIONS Request. We would like to analyse Some ICAP REQUESTS and In case we found the most common one, we would like to respond IN PLACE IF THE SERVER using the HTTP::RESPOND API

 

 

Any help will be much more appreciated

 

 

 

Vince
  • rapmaster_c_127's avatar
    rapmaster_c_127
    Historic F5 Account
    There should be no problems with any of this. If you'd like to take a stab at the rule, we'll help out if you have any trouble.
  • vlavergne_12825's avatar
    vlavergne_12825
    Historic F5 Account
    The only question I have is how to use the HTTP::RESPOND

     

    the iRule I want to write can be very simple

     

     

    When HHTP-REQUEST {

     

    if [HTTP::method== "OPTIONS"]

     

    HTTP::respond "ICAP/1.0 200 OK" Content "Whatever Content I would like to respond" X-Forwarded-Header "192.168.155.1"

     

    }

     

     

    Am I correct with the way to use HTTP::RESPOND in the rule ?

     

     

     

    Vincent