--- /dev/null
+# Description
+
+Test url_decode keyword against http client body
+
+# PCAP
+
+The pcap comes from running
+`python3 -m http.server` as a server and the client.py script as a client
--- /dev/null
+import requests
+d = {'mail': 'test@oisf.net'}
+requests.post("http://localhost:8000", data=d)
--- /dev/null
+alert http any any -> any any (http.request_body; url_decode; content:"mail=test@oisf.net"; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 6.0.0
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1