Forum Discussion

Andrew_Abplana1's avatar
Andrew_Abplana1
Icon for Nimbostratus rankNimbostratus
Feb 29, 2008

Problem with "[" in a uri string

 

We use a irule with findclass to do pool assignments. In on case we are seeing this uri...

 

 

 

https://test/app/[IMAGE_PATH]/s.gif

 

 

The "[" around IMAGE_PATHS are causing an error {invalid command name "image_path"}.

 

 

Any ideas???
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    The URI shouldn't contain non-ascii characters... the application should URI encode them to %5b and %5d in it's responses. If you manually type non-ascii characters in the address bar, the browser should (ideally) also URI encode them. What is the rule you're using where you get an error? What are you doing in the rule when you get the error? Could you encode the URI using 'HTTP::path [URI::encode [HTTP::path]]' before trying to parse it?

     

     

    Aaron
  • If you could supply the iRule in question where you are trying to access this URI. Also, how are you using the URI? If it's [HTTP::uri] then I'm not sure how the contents are mucking up another call. Again, the offending code will help us alot.

     

     

    -Joe