Forum Discussion
pjcampbell_7243
Apr 26, 2011Cirrus
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:
when HTTP_REQUEST_DATA {
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.
Thanks,
Patrick
- Looks like I found a decent example here
- Colin_Walker_12Historic F5 AccountNice, Chris' blog is definitely a good source for some of those write-ups, there's also some more info on DevCentral here:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects