Forum Discussion

pjcampbell_7243's avatar
Apr 26, 2011

Check any request (get or post) for some chars?

I wanted to check any GET or POST for some chars say %3C and %3E (< and >).



GET I think would be covered by checking the contents of HTTP::uri but this doesn't do anything to interpret POST data.



I've tried some stuff like:





if { ( [HTTP::payload] contains "%3C") && ( [HTTP::payload] contains "%3E) } {


do something







but it does not seem to be working when I do a curl post containing both of those chars so I am clearly doing something wrong? Any suggestions.







2 Replies

  • Looks like I found a decent example here





  • Colin_Walker_12's avatar
    Historic F5 Account
    Nice, Chris' blog is definitely a good source for some of those write-ups, there's also some more info on DevCentral here: