1# test https connection over http relay
2# The client writes an incomplete header line and closes the connection.
3# Check that the relay establishes and also closes the session.
4
5use strict;
6use warnings;
7
8our %args = (
9    client => {
10	func => sub {
11	    print "GET ";  # missing new line
12	},
13	ssl => 1,
14	nocheck => 1,
15    },
16    relayd => {
17	protocol => [ "http",
18	    "match request header log foo",
19	    "match response header log bar",
20	],
21	forwardssl => 1,
22	listenssl => 1,
23	loggrep => {
24	    qr/session 1 established/ => 1,
25	    qr/session 1 .*, done/ => 1,
26	},
27    },
28    server => {
29	noserver => 1,
30	nocheck => 1,
31    },
32);
33
341;
35