on 27-Feb-201902:00 - edited on 05-Jun-202321:49 by JimmyPackets
Problem this snippet solves:
Like rewriting the Location field in a redirect, it's sometimes required to rewrite JSON data, returned in an HTTP response.
Whilst it would be possible to write using traditional iRules, the task is made more simple (and less risky) by using iRulesLX.
In the following example, an HTTP response contains JSON data with fields containing external URLs. These need to be rewritten to an internal URL for the purpose of internal routing.