Forum Discussion
azakaria_102538
Nimbostratus
Mar 13, 2013Rewrite XML file content
Hi:
kindly i have a problem regarding the WSDL file content that return to the end user, it returm like this:
<wsdl:service name =" Service1 " >
name...
Kevin_Stewart
Employee
Mar 13, 2013A stream iRule is probably you're best bet. Apply the generic stream profile to your VIP and this iRule (tweak as required):
Example which replaces http:// with https:// in response content
Also prevents server compression in responses
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
LTM does not decompress response content, so if the server has compression enabled
and it cannot be disabled on the server, we can prevent the server from sending
a compressed response by removing the compression offerings from the client
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
Check if response type is text
if { [HTTP::header value Content-Type] contains "text" } {
Replace http:// with https://
STREAM::expression {@http://10.103.100.20@https://10.103.100.20@}
Enable the stream filter for this response only
STREAM::enable
}
}
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