summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-headerlength.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.sbin/relayd/args-http-headerlength.pl')
-rw-r--r--regress/usr.sbin/relayd/args-http-headerlength.pl26
1 files changed, 26 insertions, 0 deletions
diff --git a/regress/usr.sbin/relayd/args-http-headerlength.pl b/regress/usr.sbin/relayd/args-http-headerlength.pl
new file mode 100644
index 00000000000..00b40952038
--- /dev/null
+++ b/regress/usr.sbin/relayd/args-http-headerlength.pl
@@ -0,0 +1,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;