Lines Matching refs:t
17 my $t;
24 $t->{REQUEST} = ( <<EOF
29 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => "/match_1" …
30 ok($tf->handle_http($t) == 0, 'config deny');
32 $t->{REQUEST} = ( <<EOF
37 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => "/match_2" …
38 ok($tf->handle_http($t) == 0, '2nd child of chaining');
40 $t->{REQUEST} = ( <<EOF
45 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => "/match_3" …
46 ok($tf->handle_http($t) == 0, '3rd child of chaining');
48 $t->{REQUEST} = ( <<EOF
53 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => "/match_5" …
54 ok($tf->handle_http($t) == 0, 'nesting');
56 $t->{REQUEST} = ( <<EOF
61 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => "/match_7" …
62 ok($tf->handle_http($t) == 0, 'url subdir');
64 $t->{REQUEST} = ( <<EOF
69 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => "/match_6" …
70 ok($tf->handle_http($t) == 0, 'url subdir with path traversal');
72 $t->{REQUEST} = ( <<EOF
76 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Server' => 'lighttpd-1.4…
77 ok($tf->handle_http($t) == 0, 'condition: handle if before else branches');
79 $t->{REQUEST} = ( <<EOF
83 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Server' => 'special tag'…
84 ok($tf->handle_http($t) == 0, 'condition: handle if before else branches #2');
89 $t->{REQUEST} = ( "GET /index.html HTTP/1.0\r\nHost: www.example.org\r\n" );
90 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => "/match_1" …
91 ok($tf->handle_http($t) == 0, 'basic test');
96 $t->{REQUEST} = ( <<EOF
101 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => '/some+test…
102 ok($tf->handle_http($t) == 0, 'rewritten urls work with encoded path');
129 $t->{REQUEST} = ( <<EOF
134 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 301, 'Location' => $expect } …
135 ok($tf->handle_http($t) == 0, $test);