1[
2  {
3    "enabled":1,
4    "version_min":300000,
5    "title":"Testing Variables :: SERVER_PORT",
6    "client":{
7      "ip":"200.249.12.31",
8      "port":123
9    },
10    "server":{
11      "ip":"200.249.12.11",
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      },
22      "uri":"/one/two/three?key1=value1&key2=v%20a%20l%20u%20e%202",
23      "method":"GET"
24    },
25    "response":{
26      "headers":{
27        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
28        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
29        "Content-Type":"text/html"
30      },
31      "body":[
32        "no need."
33      ]
34    },
35    "expected":{
36      "debug_log":"Target value: \"80\" \\(Variable: SERVER_PORT\\)"
37    },
38    "rules":[
39      "SecRuleEngine On",
40      "SecRule SERVER_PORT \"@contains test \" \"id:1,phase:3,pass,t:trim\""
41    ]
42  },
43  {
44    "enabled":1,
45    "version_min":300000,
46    "title":"Testing Variables :: SERVER_PORT",
47    "client":{
48      "ip":"200.249.12.31",
49      "port":123
50    },
51    "server":{
52      "ip":"::1",
53      "port":80
54    },
55    "request":{
56      "headers":{
57        "Host":"localhost",
58        "User-Agent":"curl/7.38.0",
59        "Accept":"*/*",
60        "Content-Length":"27",
61        "Content-Type":"application/x-www-form-urlencoded"
62      },
63      "uri":"/one/two/three?key1=value1&key2=v%20a%20l%20u%20e%202",
64      "method":"GET"
65    },
66    "response":{
67      "headers":{
68        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
69        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
70        "Content-Type":"text/html"
71      },
72      "body":[
73        "no need."
74      ]
75    },
76    "expected":{
77      "debug_log":"Target value: \"80\" \\(Variable: SERVER_PORT\\)"
78    },
79    "rules":[
80      "SecRuleEngine On",
81      "SecRule SERVER_PORT \"@contains test \" \"id:1,phase:3,pass,t:trim\""
82    ]
83  }
84]
85