Created
September 29, 2015 18:49
-
-
Save ericlaw1979/c2520556dd9b35d78018 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Inside Rules > Customize Rules > OnBeforeResponse | |
// Hide everything except responses of type TEXT/* containing "xyz" | |
if (!oSession.ExistsAndContains("Content-Type", "text/")) | |
{ | |
oSession["ui-hide"] = "not text"; | |
} | |
else | |
{ | |
if (oSession.utilFindInResponse("xyz", true) < 0) | |
{ | |
oSession["ui-hide"] = "text but didn't have xyz"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment