Aaron...
Thanks for the feedback. My dev ended up coming up with the below code. It seems to work and figured I'd post it in case anyone can benifit from it. I'm not a coder by any means so if theres a better way to do what we did, feel free to comment.
when HTTP_REQUEST {
switch "[string tolower [HTTP::host]]" {
"domainname.com" {
set lowerUri [string tolower [HTTP::uri]]
if {$lowerUri contains "whr=urn:federation:Realm"}{
set hasWHR 1
}
{
set hasWHR 0
}
if {!$hasWHR}
{
set newURI [HTTP::uri]
if {[string tolower [HTTP::uri]] contains "?"}
{
append newURI "&whr=urn:federation:Realm"
}
{
append newURI "?whr=urn:federation:Realm"
}
HTTP::uri $newURI
}
}
}
}