--- /dev/null
+# Description
+
+Test http invalid request.
+
+# PCAP
+
+The pcap comes from https://redmine.openinfosecfoundation.org/issues/2655
--- /dev/null
+alert http any any -> any any (msg:"test"; flow:established,to_server; content:"login=foo&password=bar"; http_client_body; app-layer-event:http.request_body_unexpected; sid:1; rev:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 4.1.0
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 1