--- /dev/null
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ func => \&http_client,
+ path => "a/b/c/d/e/f/gindex.html",
+ loggrep => [
+ qr/403 Forbidden/,
+ qr/Server: OpenBSD relayd/,
+ qr/Connection: close/,
+ ],
+ httpnok => 1,
+ },
+ relayd => {
+ protocol => [ "http",
+ 'return error',
+ 'url filter digest 0ac8ccfc03317891ae2820de10ee2167d31ebd16 log',
+ ],
+ loggrep => {
+ qr/rejecting request \(403 Forbidden\)/ => 1,
+ qr/\[0ac8ccfc03317891ae2820de10ee2167d31ebd16:/ => 1,
+ },
+ },
+ server => {
+ noserver => 1,
+ nocheck => 1,
+ },
+);
+
+1;
--- /dev/null
+use strict;
+use warnings;
+
+my @lengths = (1, 2, 4, 0, 3);
+our %args = (
+ client => {
+ func => sub { eval { http_client(@_) }; warn $@ },
+ lengths => \@lengths,
+ loggrep => qr/Forbidden/,
+ },
+ relayd => {
+ protocol => [ "http",
+ 'return error',
+ 'label test_reject_label',
+ 'path filter file args-http-filter-url-file.in log',
+ 'no label',
+ ],
+ loggrep => {
+ qr/rejecting request/ => 1,
+ qr/\[test_reject_label\, \/0\:/ => 1
+ },
+ },
+ server => {
+ func => \&http_server,
+ lengths => (1, 2, 4),
+ },
+);
+
+1;