Lines Matching refs:t
15 my $t;
28 $t->{REQUEST} = ( <<EOF
33 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ];
34 ok($tf->handle_http($t) == 0, 'file not found');
36 $t->{REQUEST} = ( <<EOF
40 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/pref…
41 ok($tf->handle_http($t) == 0, 'SCRIPT_NAME');
43 $t->{REQUEST} = ( <<EOF
47 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/pref…
48 ok($tf->handle_http($t) == 0, 'SCRIPT_NAME w/ PATH_INFO');
50 $t->{REQUEST} = ( <<EOF
54 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/foo/…
55 ok($tf->handle_http($t) == 0, 'PATH_INFO');
57 $t->{REQUEST} = ( <<EOF
62 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
63 ok($tf->handle_http($t) == 0, 'valid request');
65 $t->{REQUEST} = ( <<EOF
70 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 , 'HTTP-Content' => $ENV{…
71 ok($tf->handle_http($t) == 0, 'FastCGI + bin-copy-environment');
73 $t->{REQUEST} = ( <<EOF
78 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 , 'HTTP-Content' => '' } …
79 ok($tf->handle_http($t) == 0, 'FastCGI + bin-copy-environment');
84 $t->{REQUEST} = ( <<EOF
90 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'des' …
91 ok($tf->handle_http($t) == 0, '$_SERVER["REMOTE_USER"]');
93 $t->{REQUEST} = ( <<EOF
99 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'Basic…
100 ok($tf->handle_http($t) == 0, '$_SERVER["AUTH_TYPE"]');
103 $t->{REQUEST} = ( <<EOF
108 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
109 ok($tf->handle_http($t) == 0, 'FastCGI - Auth');
111 $t->{REQUEST} = ( <<EOF
116 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
117 ok($tf->handle_http($t) == 0, 'FastCGI - Auth');
119 $t->{REQUEST} = ( <<EOF
124 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
125 ok($tf->handle_http($t) == 0, 'FastCGI - Auth in subdirectory');
127 $t->{REQUEST} = ( <<EOF
132 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 403 } ];
133 ok($tf->handle_http($t) == 0, 'FastCGI - Auth Fail with FastCGI responder afterwards');
135 $t->{REQUEST} = ( <<EOF
140 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'Light…
141 ok($tf->handle_http($t) == 0, 'FastCGI - Auth Success with Variable- to Env expansion');
143 $t->{REQUEST} = ( <<EOF
148 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test1…
149 ok($tf->handle_http($t) == 0, 'line-ending \n\n');
151 $t->{REQUEST} = ( <<EOF
156 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test1…
157 ok($tf->handle_http($t) == 0, 'line-ending \r\n\r\n');
159 $t->{REQUEST} = ( <<EOF
164 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test1…
165 ok($tf->handle_http($t) == 0, 'line-ending \n + \n');
167 $t->{REQUEST} = ( <<EOF
172 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test1…
173 ok($tf->handle_http($t) == 0, 'line-ending \r\n + \r\n');
175 $t->{REQUEST} = ( <<EOF
180 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/abc/…
181 ok($tf->handle_http($t) == 0, 'PATH_INFO (wsgi)');
183 $t->{REQUEST} = ( <<EOF
188 $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '' } ];
189 ok($tf->handle_http($t) == 0, 'SCRIPT_NAME (wsgi)');
196 $t->{REQUEST} = ( <<EOF
203 $t->{REQUEST} = ( <<EOF
209 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test1…
210 ok($tf->handle_http($t) == 0, 'killing fastcgi and wait for restart');
216 $t->{REQUEST} = ( <<EOF
221 …$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test1…
222 ok($tf->handle_http($t) == 0, 'regular response of after restart');