Request Body Manipulation for ICAP
I'm wondering if someone can help with with a problem I am having with ICAP requests in BIG-IP. As you might know, ICAP REQMOD and RESPMOD requests wrap HTTP requests in their request body. I want to be able to examine the wrapped HTTP request and extract a particular header through an iRule.
Example ICAP request:
REQMOD /reqmod ICAP/1.0
Host: 127.0.0.1:8080
Date: Sat, 28 Nov 2010 15:04:01 GMT
GET http://www.somesite.com HTTP/1.1
Host: www.somesite.com
MyHeader: blah
Pragma: no-cache
In the above example I would like to example the ICAP Request body and extract the 'MyHeader' value.
The typical HTTP iRule commands let me manipulate the ICAP request and headers easily enough, but I am struggling, to find a clean way of manipulating Request body.
Any help would be much appreciated.
Thanks!