1[ 2 { 3 "enabled":1, 4 "version_min":300000, 5 "title":"Testing Variables :: INBOUND_DATA_ERROR (1/2)", 6 "client":{ 7 "ip":"200.249.12.31", 8 "port":123 9 }, 10 "server":{ 11 "ip":"200.249.12.31", 12 "port":80 13 }, 14 "request":{ 15 "headers":{ 16 "Host":"localhost", 17 "User-Agent":"curl/7.38.0", 18 "Accept":"*/*" 19 }, 20 "uri":"/?key=value&key=other_value", 21 "method":"GET" 22 }, 23 "response":{ 24 "headers":{ 25 "Date":"Mon, 13 Jul 2015 20:02:41 GMT", 26 "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", 27 "Content-Type":"text/html" 28 }, 29 "body":[ 30 "no need." 31 ] 32 }, 33 "expected":{ 34 "debug_log":"Target value: \"0\" \\(Variable: INBOUND_DATA_ERROR\\)" 35 }, 36 "rules":[ 37 "SecRuleEngine On", 38 "SecRule INBOUND_DATA_ERROR \"@eq 1\" \"id:1,phase:3,pass,t:trim\"" 39 ] 40 }, 41 { 42 "enabled":1, 43 "version_min":300000, 44 "title":"Testing Variables :: INBOUND_DATA_ERROR (1/1)", 45 "client":{ 46 "ip":"200.249.12.31", 47 "port":123 48 }, 49 "server":{ 50 "ip":"200.249.12.31", 51 "port":80 52 }, 53 "request":{ 54 "headers":{ 55 "Host":"localhost", 56 "User-Agent":"curl/7.38.0", 57 "Accept":"*/*", 58 "Content-Length":"330", 59 "Content-Type":"multipart/form-data; boundary=--------------------------756b6d74fa1a8ee2", 60 "Expect":"100-continue" 61 }, 62 "uri":"/", 63 "method":"POST", 64 "body":[ 65 "--------------------------756b6d74fa1a8ee2", 66 "Content-Disposition: form-data; name=\"name\"", 67 "", 68 "test", 69 "--------------------------756b6d74fa1a8ee2", 70 "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", 71 "Content-Type: text/plain", 72 "", 73 "This is a very small test file..", 74 "--------------------------756b6d74fa1a8ee2", 75 "Content-Disposition: form-data; name=\"filedata\"; filename=\"small_text_file.txt\"", 76 "Content-Type: text/plain", 77 "", 78 "This is another very small test file..", 79 "--------------------------756b6d74fa1a8ee2--" 80 ] 81 }, 82 "response":{ 83 "headers":{ 84 "Date":"Mon, 13 Jul 2015 20:02:41 GMT", 85 "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", 86 "Content-Type":"text/html" 87 }, 88 "body":[ 89 "no need." 90 ] 91 }, 92 "expected":{ 93 "debug_log":"Target value: \"1\" \\(Variable: INBOUND_DATA_ERROR\\)" 94 }, 95 "rules":[ 96 "SecRuleEngine On", 97 "SecRequestBodyLimit 2", 98 "SecRule INBOUND_DATA_ERROR \"@eq 1\" \"id:1,phase:3,pass,t:trim\"" 99 ] 100 } 101] 102 103