diff options
Diffstat (limited to 'regress/usr.sbin/relayd/args-http-host2.pl')
-rw-r--r-- | regress/usr.sbin/relayd/args-http-host2.pl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/regress/usr.sbin/relayd/args-http-host2.pl b/regress/usr.sbin/relayd/args-http-host2.pl new file mode 100644 index 00000000000..b34a580665f --- /dev/null +++ b/regress/usr.sbin/relayd/args-http-host2.pl @@ -0,0 +1,34 @@ +use strict; +use warnings; + +our %args = ( + client => { + func => sub { + my $self = shift; + print <<'EOF'; +GET http://www.foo.com/1 HTTP/1.1 + +EOF + http_response($self, 1); + }, + http_vers => ["1.1"], + nocheck => 1, + method => "GET", + }, + relayd => { + protocol => [ "http", + "match request header log Host", + "match request path log \"*\"", + ], + loggrep => { + qr/, malformed header$/ => 0, + qr/\[http:\/\/www.foo.com\/1\] GET/ => 1, + }, + }, + server => { + func => \&http_server, + nocheck => 1, + } +); + +1; |