--- /dev/null
+# Description
+
+Test HTTP CONNECT followed by HTTP
+
+# PCAP
+
+The pcap comes from running txt2pcap.py with input.txt
--- /dev/null
+c2s CONNECT abc:443 HTTP/1.1\r\nUser-Agent: Victor/1.0\r\n\r\n
+s2c HTTP/1.1 200 OK\r\nServer: VictorServer/1.0\r\n\r\n
+c2s GE
+c2s T / HTTP/1.1\r\nUser-Agent: Victor/1.0\r\n\r\n
+s2c HTTP/1.1 200 OK\r\nServer: VictorServer/1.0\r\n\r\n
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+
+ # Check that there is one file event with content range.
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ tx_id: 0
+ http.http_method: CONNECT
+ http.protocol: HTTP/1.1
+ http.status: 200
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ # new transaction id as we reset after CONNECT
+ tx_id: 0
+ http.http_method: GET
+ http.protocol: HTTP/1.1
+ http.status: 200
--- /dev/null
+# Description
+
+Test HTTP CONNECT followed by HTTP
+
+# PCAP
+
+The pcap comes from running txt2pcap.py with input.txt
--- /dev/null
+c2s CONNECT abc:443 HTTP/1.1\r\nUser-Agent: Victor/1.0\r\n\r\n
+s2c HTTP/1.1 200 OK\r\nServer: VictorServer/1.0\r\n\r\n
+c2s GET / HTTP/1.1\r\nUser-Agent: Victor/1.0\r\n\r\n
+s2c HTTP/1.1 200 OK\r\nServer: VictorServer/1.0\r\n\r\n
\ No newline at end of file
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+
+ # Check that there is one file event with content range.
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ tx_id: 0
+ http.http_method: CONNECT
+ http.protocol: HTTP/1.1
+ http.status: 200
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ # new transaction id as we reset after CONNECT
+ tx_id: 0
+ http.http_method: GET
+ http.protocol: HTTP/1.1
+ http.status: 200
--- /dev/null
+# Description
+
+Test HTTP CONNECT followed by HTTP
+
+# PCAP
+
+The pcap comes from running txt2pcap.py with input.txt
--- /dev/null
+c2s CONNECT abc:443 HTTP/1.1\r\nUser-Agent: Victor/1.0\r\n\r\n
+s2c HTTP/1.1 200 OK\r\nServer: VictorServer/1.0\r\n\r\n
+c2s \x16\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
\ No newline at end of file
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+
+ # Check that there is one file event with content range.
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ tx_id: 0
+ http.http_method: CONNECT
+ http.protocol: HTTP/1.1
+ http.status: 200
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ app_proto: tls
+ app_proto_orig: http