Forum Discussion
LTM VE 10.2.3: HTTP::uri
Bad luck, it has NOT worked :-( It is a bit hard to explain what happens, but I'll try it the best I can. Here you have the irule: when HTTP_REQUEST { set DEBUG 1 set SELECTED_POOL "p_cmp_delivery_7002" set originaluri [string tolower [HTTP::uri]] switch -glob [string tolower [HTTP::uri]] { "/cm/" { set SELECTED_POOL "LPAGE_ALERTAS"
} "/delivery/wifi" { set newuri [findstr $originaluri "/delivery" 9] HTTP::uri $newuri if { $DEBUG } { log local1. "LPAGE_APPLICATION URI MODIF:: $newuri - [HTTP::uri]" }
set SELECTED_POOL "p_cmp_delivery_7002"
} "/delivery*" { set SELECTED_POOL "p_cmp_delivery_7002" } default { log local1. "LPAGE_APPLICATION :: blocked request for [HTTP::uri] by [IP::client_addr]"
HTTP::respond 403
}
} }
AND this is the log: Sep 16 09:33:30 62-87-22-161 tmm[4818]: Rule cmp_lpage_virtual_2 : LPAGE_APPLICATION URI MODIF:: /wifi/controllermenu.jsp?mid=secciones&afterredirect=true - /delivery/wifi/controllerMenu.jsp?mId=Secciones&afterRedirect=true ........... As you can see, $newuri is /wifi/controllermenu.jsp?mid=secciones&afterredirect=true, but [HTTP::uri] is still /delivery/wifi/controllerMenu.jsp?mId=Secciones&afterRedirect=true, that is, [HTTP::uri] does NOT change its value to $newuri, and I don't know why. How can I modif the value of [HTTP::uri]? Thanks in advance.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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