summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-contentlength.pl
blob: 2362af457c50e3692e20df3d21e0e45ae553a26a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# test persistent http 1.1 connection and grep for content length

use strict;
use warnings;

my @lengths = (1, 2, 0, 3, 4);
our %args = (
    client => {
	func => \&http_client,
	lengths => \@lengths,
    },
    relayd => {
	protocol => [ "http",
	    "match request header log foo",
	    "match response header log Content-Length",
	],
	loggrep => [ map { "Content-Length: $_" } @lengths ],
    },
    server => {
	func => \&http_server,
    },
    lengths => \@lengths,
    md5 => [
	"68b329da9893e34099c7d8ad5cb9c940",
	"897316929176464ebc9ad085f31e7284",
	"d41d8cd98f00b204e9800998ecf8427e",
	"0ade138937c4b9cb36a28e2edb6485fc",
	"e686f5db1f8610b65f98f3718e1a5b72",
	"68b329da9893e34099c7d8ad5cb9c940",
	"897316929176464ebc9ad085f31e7284",
	"d41d8cd98f00b204e9800998ecf8427e",
	"0ade138937c4b9cb36a28e2edb6485fc",
	"e686f5db1f8610b65f98f3718e1a5b72",
    ],
);

1;