xref: /openbsd-src/regress/usr.sbin/relayd/args-http-filter-url.pl (revision f6aab3d83b51b91c24247ad2c2573574de475a82)
1use strict;
2use warnings;
3
4our %args = (
5    client => {
6	func => \&http_client,
7	path => "a/b/c/d/e/f/gindex.html",
8	loggrep => [
9	    qr/403 Forbidden/,
10	    qr/Server: OpenBSD relayd/,
11	    qr/Connection: close/,
12	],
13	httpnok => 1,
14	nocheck => 1,
15    },
16    relayd => {
17	protocol => [ "http",
18	    'return error',
19	    'block request url log "foo.bar/a/b/"',
20	],
21	loggrep => {
22	    qr/Forbidden \(403 Forbidden\)/ => 1,
23	    qr/\[foo.bar\/a\/b\// => 1,
24	},
25    },
26    server => {
27	noserver => 1,
28	nocheck => 1,
29    },
30);
31
321;
33