summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-headerlength.pl
blob: 00b4095203824c12a13043fcd50ae4da5bb62d64 (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 Request Entity Too Large/,
    },
    relayd => {
	protocol => [ "http",
	    'return error',
	    'pass',
	],
	loggrep => qr/413 Request Entity Too Large/,
    },
    server => {
	noserver => 1,
	nocheck => 1,
    },
);

1;