--- /dev/null
+# Description
+
+Test http async parsing
+
+This test case contains direction client to server
+
+# PCAP
+
+The pcap comes from test http-async with filter `tcp.dstport == 8080`
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+# disables checksum verification
+args:
+ - -k none
+ - --set stream.async-oneside=true
+
+checks:
+
+ # Check that there is one file event with content range.
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "/1"
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "/2"
--- /dev/null
+# Description
+
+Test http async parsing
+
+This test case contains direction server to client
+
+# PCAP
+
+The pcap comes from test http-async with filter `tcp.srcport == 8080`
--- /dev/null
+alert http any any -> any any (msg:"World"; file_data; content:"World"; sid:1;)
+alert http any any -> any any (msg:"People"; file_data; content:"People"; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+# disables checksum verification
+args:
+ - -k none
+ - --set stream.async-oneside=true
+
+checks:
+
+ # Check that there is one file event with content range.
+ - filter:
+ count: 2
+ match:
+ event_type: http
+ http.status: 200
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
--- /dev/null
+# Description
+
+Test http async parsing
+
+This test case contains both directions
+
+# PCAP
+
+The pcap comes from running
+`python test/htptopcap.py async.txt`
+With the attached async.txt
--- /dev/null
+>>>\r
+GET /1 HTTP/1.0\r
+User-Agent: Mozilla\r
+\r
+\r
+<<<\r
+HTTP/1.0 200 OK\r
+Date: Mon, 31 Aug 2009 20:25:50 GMT\r
+Server: Apache\r
+Connection: close\r
+Content-Type: text/html\r
+Content-Length: 12\r
+\r
+Hello World!
+
+>>>\r
+GET /2 HTTP/1.0\r
+User-Agent: Mozilla\r
+\r
+\r
+<<<\r
+HTTP/1.0 200 OK\r
+Server: Apache\r
+Connection: close\r
+Content-Type: text/html\r
+Content-Length: 12\r
+\r
+Hello People
\ No newline at end of file
--- /dev/null
+alert http any any -> any any (msg:"World"; file_data; content:"World"; sid:1;)
+alert http any any -> any any (msg:"People"; file_data; content:"People"; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ min-version: 5.0.0
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+
+ # Check that there is one file event with content range.
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "/1"
+ http.status: 200
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.url: "/2"
+ http.status: 200
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2