strict negative matchers

patch-1
sandeep 2021-07-26 15:14:33 +05:30
parent b990243906
commit e9210d80bf
1 changed files with 15 additions and 6 deletions

View File

@ -20,11 +20,20 @@ requests:
matchers:
- type: dsl
dsl:
- '!contains(tolower(body), "<html")'
- '!contains(tolower(body), "<!doctype")'
- '!contains(tolower(body), "<script")'
- '!contains(tolower(body), "<meta")'
- '!contains(tolower(all_headers), "image/")'
- 'len(body) > 50'
- 'status_code == 200'
condition: and
- type: word
words:
- "application/javascript"
- "application/json"
- "application/xml"
- "html"
- "<!doctype"
- "<script"
- "<meta"
- "image/"
part: all
negative: true
condtion: or