Skip to content

Commit

Permalink
Added query examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Apr 1, 2016
1 parent c5e2fa8 commit b1cf75d
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions queries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ request.parameternames:csrftoken
All request without a particular parameter:
NOT request.parameternames:csrftoken

...only POST requests:
request.method:POST -request.parameternames.raw:"csrftoken"

All responses without a doctype definition:
response.inferred_content_type:html -doctype

...and only 200 responses:
response.status:200 AND response.inferred_content_type:html -doctype

All responses that were recognized as HTML but declared as something different:
response.inferred_content_type:html -response.content_type:html

JSON
====

Expand Down Expand Up @@ -53,6 +65,46 @@ All requests without HEADERNAME header:
}
}

All requests with HEADERNAME header with value VALUE:
{
"query": {
"nested": {
"path": "response.headers",
"query": {
"bool": {
"must_not": {
"match_phrase": {
"response.headers.name": "X-Frame-Options"
},
"match_phrase": {
"response.headers.value": "SAMEORIGIN"
}
}
}
}
}
}
}

All requests without HEADERNAME header with value VALUE:
{
"query": {
"bool": {
"must_not": {
"nested": {
"path": "response.headers",
"query": {
"match_phrase": {
"response.headers.name": "HEADERNAME",
"response.headers.value": "VALUE"
}
}
}
}
}
}
}

All POST requests:
{
"query": {
Expand Down

0 comments on commit b1cf75d

Please sign in to comment.