This repository has been archived by the owner on May 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rule to check if both C-L and T-E are present
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
util/regression-tests/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920181.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
meta: | ||
author: "fgsch" | ||
enabled: true | ||
name: "920181.yaml" | ||
description: "Description" | ||
tests: | ||
- | ||
test_title: 920181-1 | ||
stages: | ||
- | ||
stage: | ||
input: | ||
dest_addr: "127.0.0.1" | ||
port: 80 | ||
method: "POST" | ||
uri: "/" | ||
headers: | ||
Host: "localhost" | ||
Accept: "*/*" | ||
Content-Length: 7 | ||
Content-Type: "application/x-www-form-urlencoded" | ||
Transfer-Encoding: "chunked" | ||
User-Agent: "ModSecurity CRS 3 Tests" | ||
data: | ||
- "7" | ||
- "foo=bar" | ||
- "0" | ||
- "" | ||
- "" | ||
stop_magic: true | ||
output: | ||
# Apache unsets the Content-Length header if | ||
# Transfer-Encoding is found! | ||
no_log_contains: id "920181" |