Forum Discussion

Brent_12837's avatar
Brent_12837
Icon for Nimbostratus rankNimbostratus
Apr 18, 2008

Equal Sign on redirect

I am having a problem when I redirect to another uri with parameters, it is not taking anything after the equal sign. Here is my code:

 

 

when HTTP_REQUEST {

 

switch [string tolower [HTTP::uri]] {

 

"/keyword" {HTTP::uri "/static/Module?string=ABC" }

 

}

 

}

 

 

When this is live, it redirects but does not bring over the ABC value.

 

 

How can I get ti to take this value.

 

 

Thanks

 

 

Brent

3 Replies

  • That did not work.

     

     

    Still does not accept anythign after the equal sign
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    I would try either:

    
    when HTTP_REQUEST {
      switch [string tolower [HTTP::uri]] {
        "/keyword" { HTTP::uri "/static/Module?string\=ABC"  }
      }
    }

    Or:

    
    when HTTP_REQUEST {
      switch [string tolower [HTTP::uri]] {
        "/keyword" { HTTP::uri {/static/Module?string=ABC}  }
      }
    }

    Perhaps one of those will get you there. That's an interesting one, though. I've not heard of issues with passing an equals sign before like that.

    Colin