xref: /openbsd-src/regress/usr.sbin/relayd/args-http-filter-persistent.pl (revision 50b7afb2c2c0993b0894d4e34bf857cb13ed9c80)
1# test persistent http connection with request filter
2
3use strict;
4use warnings;
5
6my @lengths = (251, 16384, 0, 1, 2, 3, 4, 5);
7our %args = (
8    client => {
9	func => \&http_client,
10	lengths => \@lengths,
11	loggrep => qr/Client missing http 2 response/,
12    },
13    relayd => {
14	protocol => [ "http",
15	    'block request path "/2"',
16	],
17	loggrep => qr/Forbidden/,
18    },
19    server => {
20	func => \&http_server,
21    },
22    lengths => [251, 16384, 0, 1, 3, 4, 5],
23    md5 => "bc3a3f39af35fe5b1687903da2b00c7f",
24);
25
261;
27