Forum Discussion
F5 Policy using replace with TCL
- May 22, 2023
solved as tcl[HTTP::uri "/ICTDesktop[HTTP::uri]"]
ps: also tcl[HTTP::path "/ICTDesktop[HTTP::path]"] works
i was thinking something like that
tcl:[
set old_path [HTTP::path]
set new_path /ICTdesktop${old_path}
string map [list "$old_path" "$new_path"] [HTTP::uri]
]
ArlindT I don't believe this would work well with a string map because a string map works off of a static value being changed to another static value. What is the reason behind having to insert the "/ICTdesktop" into the path? This might be something that is better taken care of on the server side and letting the client see the path rather than attempting to hide it from the client.
- ArlindTMay 14, 2023Altocumulus
we had this request to balance:
node1/ICTdesktop
node2/ICTdesktop
pool1( node1 + node2) -> policy ictservice.it/variable_path
the requester want ictservice.it/variable_path
to be processed as ictservice.it/ICTdesktop/variable_path
you think this is better to be done Server side, or can be done also F5 side?
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