Charlie_2_10323
May 15, 2009Nimbostratus
HTTP Respond Data replacing ?
Hi
I will rewrite response hostname.
HTTP_Response function well, but HTTP_Respond_Data not.
We have on Request and Respond site HTTPS access
Client is terminated by Big-IP
Also we get HTTPS response it is possible to replacing hppts_response_data?
Does someone know that? Or is my http_response_data fools?
Any help would be great.
when HTTP_RESPONSE {
HTTP::collect [HTTP::header Content-Length]
if { $target_pool == "blo.server" } {
set location [HTTP::header value Location]
log local0.info "Server-RESPONS"
HTTP::header replace Location [string map -nocase {"blo.server.com" "www.client.com"} [HTTP::header Location]]
log "BEFORE Replacing payload with new data."
}
}
when HTTP_RESPONSE_DATA {
set clen [string length [HTTP::payload]]
regsub -all "blo.server.com" [HTTP::payload] "www.client.com" newdata
log "Replacing payload with new data."
HTTP::payload replace 0 $clen $newdata
HTTP::release
}