summaryrefslogtreecommitdiffstats
path: root/regress/usr.sbin/relayd/args-http-filter-method.pl
blob: e646178c149c75349a0beaa989d62bd840ba995a (plain) (blame)
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
# test method filtering

use strict;
use warnings;

our %args = (
    client => {
	func => \&http_client,
	method => 'HEAD',
	loggrep => qr/HTTP\/1\.0 403 Forbidden/,
	httpnok => 1,
	nocheck => 1,
    },
    relayd => {
	protocol => [ "http",
	    'return error',
	    'block request method "HEAD" path log',
	],
	loggrep => qr/403 Forbidden/,
    },
    server => {
	noserver => 1,
	nocheck => 1,
    },
);

1;