summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-filter-null-host.pl
blob: 3ef85eb455dca29c9873c31af24c93224cc7ad54 (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
# test http request with null Host header

use strict;
use warnings;


my %header_client = (
    "Host" => "",
);

our %args = (
    client => {
	func => \&http_client,
	header => \%header_client,
	httpnok => 1,
	nocheck => 1,
    },
    relayd => {
	protocol => [ "http",
	    'pass',
	    'block url "Host"',
	    'return error',
	],
#	loggrep => qr/Forbidden, \[Cookie: med=thx.*/,
    },
    server => {
	func => \&http_server,
	noserver => 1,
	nocheck => 1,
    },
);

1;