Forum Discussion
David_Stout
Dec 17, 2014Nimbostratus
Thanks 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 🙂