Forum Discussion
agidwani_102403
Nimbostratus
Feb 25, 2008STREAM::max_matchsize - HELP - Urgent
All,
We are trying to do a URI rewrite and are running into some kind of buffer limitation with streams.
We get a error message when using the following streams directive
...
Nat_Thirasuttakorn
Employee
Feb 26, 2008my 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...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
