Forum Discussion

Frank_J_104756's avatar
Frank_J_104756
Historic F5 Account
Oct 31, 2007

HTTP::payload replace

I have 2 needs...1 to replace/hide the server in the http redirects that are being sent by the node. 2) to replace/hide the server in the actual content.

 

 

when HTTP_RESPONSE {

 

if { [LB::server addr] eq "10.1.1.1" } {

 

HTTP::header replace Location [string map { } [HTTP::header Location]] }

 

elseif { [LB::server addr] eq "10.1.1.2" } {

 

HTTP::header replace Location [string map { } } [HTTP::header Location]] }

 

}

 

 

the irule above works great for the redirects but not for the content / payload. When I read up on the HTTP::payload command though it's specifying offset or begin point and I won't know that because the servername will appear different on different pages.

 

 

Any suggestions ? I'd love to do a HTTP::payload replace with a findstr if possible but they way I read the wiki for HTTP::payload replace I can't.

 

 

Oh, and by the way, using stream profile isn't working. I have a separate support case open for that. I would have preferred to use stream but for some reason it ain't working whereas the irules are.

 

 

thanks!!!