I see you may have a redirect loop:
A tiny test shows:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/cc/Claim" } {
HTTP::redirect "http://[HTTP::host]/cc/Claim/Claim.do"
}
}
Ends up in a redirect loop for me: firefox shows that "this page isn't redirecting properly" or a similar message. Dumping the HTTP headers confirms this.
But changing [HTTP::uri] "starts_with" to "ends_with" works properly for me:
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "/cc/Claim" } {
HTTP::redirect "http://[HTTP::host]/cc/Claim/Claim.do"
}
if { [HTTP::uri] ends_with "Claim.do" } {
HTTP::respond 200 content "You made it!!"
}
}
gives me the expected result, as well as the full URI in the browser address bar as expected.
I hope this helps.
-Matt