append to URI

mcyorkmcyork Member ✭✭
I'd like to add ?A10 to a specific URI. The intent may appear below but of course I am posting here as it clearly does not do what I want :)

When I get a request how do I change the request (uri) before sending to the server side? It is Sunday and I have been on an 11 hour conf call and my brain will not function - I hope the Internet is still awake and alert.

when HTTP_REQUEST {
if {([HTTP::uri] starts_with "/junk")} {
[HTTP::uri] [HTTP::uri] + "?A10"
}
}

Comments

  • edited February 2014
    I think it should be like the below.

    when HTTP_REQUEST {
    if {([HTTP::uri] starts_with “/junk”)} {
    [HTTP::uri] [HTTP::uri]?A10
    }
    }

    Thanks
    Michael.
Sign In or Register to comment.