Forum Discussion
hooleylist
Jan 24, 2012Cirrostratus
Nice one Nitass 🙂
David, here are a couple of small suggestions:
If the JSESSIONID is in mixed case and/or the value can be more than 9 hex characters you could use the stream expression from my example. Also, you might need to remove the JSESSIONID from redirects. If so, you can add this to Nitass's example in HTTP_RESPONSE:
Check if response is a redirect and the Location header has a jsessionid
if {[HTTP::is_redirect] and [HTTP::header Location] contains ";jsessionid="}{
Remove ;jsessionid= up until a ? which starts the query string
HTTP::header replace [string map [list [findstr [string tolower [HTTP::header Location]] ";jsessionid=" 12 "?"] ""] [HTTP::header Location]]
}
Aaron