summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-headerlength.pl
blob: 1597e2766f833463afa2123efa4085b48630477f (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
use strict;
use warnings;

my %header = ( "Host" => "www.example.com", "Set-Cookie" => "a="."X"x8192 );
our %args = (
    client => {
	func => \&http_client,
	header => \%header,
	httpnok => 1,
	nocheck => 1,
	loggrep => qr/HTTP\/1\.0 413 Payload Too Large/,
    },
    relayd => {
	protocol => [ "http",
	    'return error',
	    'pass',
	],
	loggrep => qr/413 Payload Too Large/,
    },
    server => {
	noserver => 1,
	nocheck => 1,
    },
);

1;