Layer7 API Management

Expand all | Collapse all

How can I replace a specific URL in the header and body of a response in the gateway?

  • 1.  How can I replace a specific URL in the header and body of a response in the gateway?

    Posted Jun 06, 2018 06:02 PM

    So we have a Soap service that we set up for QA Symphony called QTesDev. QA is coming into our gateway URL & then routes it back to a server in our domain using "DNSName.domain.net:8080". What I am trying to figure out is how I can change the response to replace in the header and the body anytime it sees the DNSName.domain.net:8080 to the Gateway URL.



  • 2.  Re: How can I replace a specific URL in the header and body of a response in the gateway?
    Best Answer

    Posted Jun 07, 2018 06:30 AM

    Use a Evaluate Regular Expression Assertion to replace the url in the body. Same can be used for the headers: iterate all headers and use the Manage Transport Properties/Headers Assertion to replace the content.