Hi Bob,
A few tips:
- You can use parenthesis to perform a negation on this line. You can also check just the query string instead of the full URI using HTTP::query. And if you're setting one string to lower case you should set the string you're checking for to lower case as well.
Original:
if {not [string tolower [HTTP::uri]] contains "whr=urn:federation:Realm"}{
Updated:
if {not ([string tolower [HTTP::query]] contains "whr=urn:federation:realm")}{
To append something to the URI, you can use:
HTTP::uri "[HTTP::uri]?whr=urn:federation:Realm"
Aaron