Forum Discussion
Chris_Bates
Nimbostratus
Oct 17, 2022Editing JSON HTTP Response
Hey guys! I'm completely new to F5 and am currently trying to fix an issue that we are having with 'HTTP' to 'HTTPS' rewrites. There was another post that fixed somewhat the issue that we are faci...
CraigM_17826
Altocumulus
Dec 21, 2009Hi Bhattman,
thanks for the reply. Actually I rejigged the rule slightly and put in some log statements to see what was going on. It goes somthing like this
switch -glob [string tolower [HTTP::uri]] {
"/sometext" {
log "Using pool1 for URI [HTTP::uri]"
pool pool1
}
"/sometext2" {
log "Using pool2 for URI [HTTP::uri]"
pool pool2
}
}
log local0. "URI: [HTTP::uri]"
What I noticed was that the cases were not matching yet the last log statement was inidcating the specified URI should have matched. For example if I entered http://webserv.com/sometext the switch would not match byt the log statement would indicate the URI was in fact /sometext. The same applied to all the cases in the switch statement, they all failed yet the log statement indicated they should have matched.
Craig
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