my VS is running in https to the client and http to the servers. i have assigned a http profile in which i make a “Redirect Rewrite All”. now it happens that i need to tranfer a file (wsdl) from the servers via http and not https. does any body know how i can break the redirect rewrite so when the client downloads this file it goes via http ?
If you only want to rewrite selectively, I think you’d need to disable the HTTP profile option and use an iRule. Here’s an example:
when HTTP_RESPONSE {
Check if response is a redirect and doesn't contain .wsdl
if {[HTTP::is_redirect] and not ([string tolower [HTTP::header value Location]] contains ".wsdl")}{
Replace http:// with https:// in the Location header value
HTTP::header replace Location [string map {http:// https://} [HTTP::header value Location]]
}
}