1[
2  {
3    "enabled":1,
4    "version_min":300000,
5    "title":"Testing Variables :: REQUEST_METHOD",
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      "http_version":1.1
23    },
24    "response":{
25      "headers":{
26        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
27        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
28        "Content-Type":"text/html"
29      },
30      "body":[
31        "no need."
32      ]
33    },
34    "expected":{
35      "debug_log":"Target value: \"GET\" \\(Variable: REQUEST_METHOD\\)"
36    },
37    "rules":[
38      "SecRuleEngine On",
39      "SecRule REQUEST_METHOD \"@contains test \" \"id:1,pass,t:trim\""
40    ]
41  }
42]
43
44