Forum Discussion
David_Stout
Nimbostratus
Dec 17, 2014String Manipulation and TCL Error
I'm up against a wall with my limited iRule knowledge so would like some input here.
We're taking some data within the original URI request and manipulating it into a new format so it's compatible ...
David_Stout
Nimbostratus
Dec 17, 2014Thanks for the reply. I went back to the drawing board after looking at my own post and came up with this small change that seems to work just fine. Seeing as the query string is always of the same length I just applied the following simple fix.
set query_find "accountname=i%3A0%C7%B5%2Et%7Cadfs%20stage%7C"
set UserID [findstr [HTTP::uri] "|" 30 0]
set query_replace "p%5Bid%5D=i%3A0%C7%B5.t%7Cadfs%7C${UserID}&p%5BidType%5D=adfs"
Oh the fun of inheriting iRules written by someone else way before several software upgrades 🙂
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
