Forum Discussion
Kirk_Bauer_1018
Nimbostratus
Mar 31, 2007Can't get HTTP payload modification iRule to work
I have tried this rule, largely pieced together from sample code on this site:
when HTTP_REQUEST {
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
log local0. "$uri:...
Rom_Ortiz_79128
Nimbostratus
Sep 04, 2007Hello deb,
I tried your script but I don't see that the iRule is replacing the content/ Here is my iRule
when HTTP_RESPONSE_DATA {
set payload [HTTP::payload]
set find "http://adserver.ticketpop.com"
set replace "http://ads.ticketpop.nre"
regexp -all -inline -indices $find $payload $replace payload
HTTP::payload replace 0 [HTTP::payload length] $payload
}
I am missing something?
Rom
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