1[ 2 { 3 "enabled":1, 4 "version_min":300000, 5 "title":"Testing Variables :: WEBAPPID (1)", 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 "Content-Length": "27", 20 "Content-Type": "application/x-www-form-urlencoded", 21 "Authorization": "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" 22 }, 23 "uri":"/", 24 "method":"POST", 25 "body": [ 26 "param1=value1¶m2=value2" 27 ] 28 }, 29 "response":{ 30 "headers":{ 31 "Date":"Mon, 13 Jul 2015 20:02:41 GMT", 32 "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", 33 "Content-Type":"text/html" 34 }, 35 "body":[ 36 "no need." 37 ] 38 }, 39 "expected":{ 40 "debug_log":"t:trim: \"\"" 41 }, 42 "rules":[ 43 "SecRuleEngine On", 44 "SecRule WEBAPPID \"@contains test \" \"id:1,phase:3,pass,t:trim\"" 45 ] 46 }, 47 { 48 "enabled":1, 49 "version_min":300000, 50 "title":"Testing Variables :: WEBAPPID (2)", 51 "client":{ 52 "ip":"200.249.12.31", 53 "port":123 54 }, 55 "server":{ 56 "ip":"200.249.12.31", 57 "port":80 58 }, 59 "request":{ 60 "headers":{ 61 "Host":"localhost", 62 "User-Agent":"curl/7.38.0", 63 "Accept":"*/*", 64 "Content-Length": "27", 65 "Content-Type": "application/x-www-form-urlencoded", 66 "AuThOrIzAtIoN": "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==" 67 }, 68 "uri":"/", 69 "method":"POST", 70 "body": [ 71 "param1=value1¶m2=value2" 72 ] 73 }, 74 "response":{ 75 "headers":{ 76 "Date":"Mon, 13 Jul 2015 20:02:41 GMT", 77 "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT", 78 "Content-Type":"text/html" 79 }, 80 "body":[ 81 "no need." 82 ] 83 }, 84 "expected":{ 85 "debug_log":"Target value: \"bisteka\"" 86 }, 87 "rules":[ 88 "SecRuleEngine On", 89 "SecWebAppId bisteka", 90 "SecRule WEBAPPID \"@contains test \" \"id:1,phase:3,pass,t:trim\"" 91 ] 92 } 93] 94 95