Forum Discussion
Nat_Thirasuttakorn
Feb 26, 2008Employee
my 2 cents
to change the data part...may be we can use HTTP_REQUEST_DATA event + regsub command. performance of STREAM profile might be better but using HTTP_REQUEST_DATA, iRule might be easier
for example, (not tested)
when HTTP_REQUEST {
if {[HTTP::method] equals "POST"} {
set len [HTTP::header Content-Length]
HTTP::collect $len
}
}
when HTTP_REQUEST_DATA {
regsub -nocase {/$search/\[Cc\]\[Oo\]\[Mm\]\[Pp\].\[Aa\]\[Ss\]\[Mm\]\[Xx\]} [HTTP::payload] "/global/hscs.asmx" newpayload
HTTP::payload replace 0 $len $newpayload
}
BIG-IP should be able to handle content-length modification...