Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 36) sorted by relevance

12

/mOS-networking-stack/samples/lighttpd-1.4.32/tests/
H A Dmod-fastcgi.t38 ok($tf->handle_http($t) == 0, 'valid request');
46 ok($tf->handle_http($t) == 0, 'file not found');
102 ok($tf->handle_http($t) == 0, 'SERVER_NAME');
110 ok($tf->handle_http($t) == 0, 'SERVER_NAME');
118 ok($tf->handle_http($t) == 0, 'SERVER_NAME');
126 ok($tf->handle_http($t) == 0, 'SERVER_NAME');
133 ok($tf->handle_http($t) == 0, 'PATHINFO');
182 ok($tf->handle_http($t) == 0, 'X-Sendfile2');
189 ok($tf->handle_http($t) == 0, 'X-Sendfile2');
241 ok($tf->handle_http($t) == 0, 'Bug #6');
[all …]
H A Drequest.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
26 ok($tf->handle_http($t) == 0, 'file not found');
120 ok($tf->handle_http($t) == 0, 'Continue, Expect');
131 ok($tf->handle_http($t) == 0, 'GET, Range 0-3');
140 ok($tf->handle_http($t) == 0, 'GET, Range -3');
149 ok($tf->handle_http($t) == 0, 'GET, Range 3-');
181 ok($tf->handle_http($t) == 0, 'GET, Range 0--');
190 ok($tf->handle_http($t) == 0, 'GET, Range -2-3');
212 ok($tf->handle_http($t) == 0, 'GET, Range -0');
252 ok($tf->handle_http($t) == 0, 'larger headers');
[all …]
H A Dcore-request.t26 ok($tf->handle_http($t) == 0, 'URL-encoding');
33 ok($tf->handle_http($t) == 0, 'URL-encoding, %00');
45 ok($tf->handle_http($t) == 0, 'hostname');
53 ok($tf->handle_http($t) == 0, 'IPv4 address');
61 ok($tf->handle_http($t) == 0, 'IPv6 address');
69 ok($tf->handle_http($t) == 0, 'hostname + port');
117 ok($tf->handle_http($t) == 0, 'leading dot');
126 ok($tf->handle_http($t) == 0, 'two dots');
175 ok($tf->handle_http($t) == 0, 'leading dash');
183 ok($tf->handle_http($t) == 0, 'dot only');
[all …]
H A Dcore.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
31 ok($tf->handle_http($t) == 0, 'missing Protocol');
82 ok($tf->handle_http($t) == 0, 'unknown method');
89 ok($tf->handle_http($t) == 0, 'unknown protocol');
96 ok($tf->handle_http($t) == 0, 'absolute URI');
121 ok($tf->handle_http($t) == 0, 'no whitespace');
130 ok($tf->handle_http($t) == 0, 'line-folding');
138 ok($tf->handle_http($t) == 0, 'URL-encoding');
152 ok($tf->handle_http($t) == 0, 'OPTIONS');
161 ok($tf->handle_http($t) == 0, 'OPTIONS');
[all …]
H A Dcore-condition.t18 ok($tf->start_proc == 0, "Starting lighttpd") or die();
26 ok($tf->handle_http($t) == 0, 'config deny');
34 ok($tf->handle_http($t) == 0, '2nd child of chaining');
42 ok($tf->handle_http($t) == 0, '3rd child of chaining');
50 ok($tf->handle_http($t) == 0, 'nesting');
58 ok($tf->handle_http($t) == 0, 'url subdir');
66 ok($tf->handle_http($t) == 0, 'url subdir with path traversal');
68 ok($tf->stop_proc == 0, "Stopping lighttpd");
71 ok($tf->start_proc == 0, "Starting lighttpd") or die();
126 ok($tf->handle_http($t) == 0, 'remote ip cache (#255)');
[all …]
H A Dmod-cgi.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
26 ok($tf->handle_http($t) == 0, 'perl via cgi');
33 ok($tf->handle_http($t) == 0, 'perl via cgi + pathinfo');
40 ok($tf->handle_http($t) == 0, 'perl via cgi + pathinfo');
75 ok($tf->handle_http($t) == 0, 'cgi-env: QUERY_STRING');
90 ok($tf->handle_http($t) == 0, 'cgi-env: HTTP_HOST');
106 ok($tf->handle_http($t) == 0, 'cgi-env: HTTP_HOST');
114 ok($tf->handle_http($t) == 0, 'cgi-env: HTTP_HOST');
122 ok($tf->handle_http($t) == 0, 'cgi-env: HTTP_HOST');
131 ok($tf->handle_http($t) == 0, 'cgi-env: HTTP_HOST');
[all …]
H A Dmod-auth.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
24 ok($tf->handle_http($t) == 0, 'Missing Auth-token');
32 ok($tf->handle_http($t) == 0, 'Basic-Auth: Invalid base64 Auth-token');
40 ok($tf->handle_http($t) == 0, 'Basic-Auth: Wrong Auth-token');
48 ok($tf->handle_http($t) == 0, 'Basic-Auth: Valid Auth-token - plain');
87 ok($tf->handle_http($t) == 0, 'Basic-Auth: Valid Auth-token');
98 ok($tf->handle_http($t) == 0, 'Digest-Auth: missing qop, no crash');
120 ok($tf->handle_http($t) == 0, 'Basic-Auth: Invalid Base64');
135 ok($tf->handle_http($t) == 0, 'Digest-Auth: md5-sess + missing cnonce');
149 ok($tf->handle_http($t) == 0, 'Digest-Auth: trailing WS');
[all …]
H A Dcachable.t19 ok($tf->start_proc == 0, "Starting lighttpd") or die();
29 ok($tf->handle_http($t) == 0, 'Conditional GET - old If-Modified-Since');
37 ok($tf->handle_http($t) == 0, 'Conditional GET - old If-Modified-Since, comment');
47 ok($tf->handle_http($t) == 0, 'Conditional GET - new If-Modified-Since');
55 ok($tf->handle_http($t) == 0, 'Conditional GET - new If-Modified-Since, comment');
63 ok($tf->handle_http($t) == 0, 'Conditional GET - old If-None-Match');
73 ok($tf->handle_http($t) == 0, 'Conditional GET - old If-None-Match');
82 ok($tf->handle_http($t) == 0, 'Conditional GET - ETag + old Last-Modified');
91 ok($tf->handle_http($t) == 0, 'Conditional GET - ETag, Last-Modified + comment');
100 ok($tf->handle_http($t) == 0, 'Conditional GET - old ETAG + old Last-Modified');
[all …]
H A Dcore-response.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
28 ok($tf->handle_http($t) == 0, 'Date header');
35 ok($tf->handle_http($t) == 0, 'Host missing');
42 ok($tf->handle_http($t) == 0, 'ETag is set');
49 ok($tf->handle_http($t) == 0, 'ETag has quotes');
62 ok($tf->handle_http($t) == 0, 'Content-Length for text/html');
70 ok($tf->handle_http($t) == 0, 'Content-Length for text/plain');
80 ok($tf->handle_http($t) == 0, 'internal redirect in directory');
97 ok($tf->handle_http($t) == 0, 'disabling simple-vhost via conditionals');
105 ok($tf->handle_http($t) == 0, 'simple-vhost via conditionals');
[all …]
H A Dmod-compress.t19 ok($tf->start_proc == 0, "Starting lighttpd") or die();
27 ok($tf->handle_http($t) == 0, 'Vary is set');
36 ok($tf->handle_http($t) == 0, 'deflate - Content-Length and Content-Encoding is set');
45 ok($tf->handle_http($t) == 0, 'deflate - Content-Length and Content-Encoding is set');
54 ok($tf->handle_http($t) == 0, 'gzip - Content-Length and Content-Encoding is set');
63 ok($tf->handle_http($t) == 0, 'gzip - Content-Length and Content-Encoding is set');
72 ok($tf->handle_http($t) == 0, 'gzip, deflate - Content-Length and Content-Encoding is set');
80 ok($tf->handle_http($t) == 0, 'Content-Type is from the original file');
91 ok($tf->handle_http($t) == 0, 'Empty Accept-Encoding');
100 ok($tf->handle_http($t) == 0, 'bzip2 requested but disabled');
[all …]
H A Dlowercase.t19 ok($tf->start_proc == 0, "Starting lighttpd") or die();
28 ok($tf->handle_http($t) == 0, 'uppercase access');
35 ok($tf->handle_http($t) == 0, 'lowercase access');
45 ok($tf->handle_http($t) == 0, 'uppercase access');
53 ok($tf->handle_http($t) == 0, 'lowercase access');
63 ok($tf->handle_http($t) == 0, 'upper case access to staticfile.exclude-extension');
71 ok($tf->handle_http($t) == 0, 'lowercase access');
81 ok($tf->handle_http($t) == 0, 'uppercase access to url.access-deny protected location');
89 ok($tf->handle_http($t) == 0, 'lowercase access');
93 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dsymlink.t37 ok($tf->start_proc == 0, "Starting lighttpd") or die();
47 ok($tf->handle_http($t) == 0, 'allow: simple file');
56 ok($tf->handle_http($t) == 0, 'allow: symlinked file');
65 ok($tf->handle_http($t) == 0, 'allow: directly symlinked dir');
74 ok($tf->handle_http($t) == 0, 'allow: symlinked dir in path');
84 ok($tf->handle_http($t) == 0, 'deny: simple file');
93 ok($tf->handle_http($t) == 0, 'deny: symlinked file');
102 ok($tf->handle_http($t) == 0, 'deny: directly symlinked dir');
111 ok($tf->handle_http($t) == 0, 'deny: symlinked dir in path');
114 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dmod-proxy.t26 ok(-1 != ($php_child = $tf_real->spawnfcgi($phpbin, 1026)), "Spawning php");
39 ok($tf_real->start_proc == 0, "Starting lighttpd") or goto cleanup;
41 ok($tf_proxy->start_proc == 0, "Starting lighttpd as proxy") or goto cleanup;
49 ok($tf_proxy->handle_http($t) == 0, 'valid request');
57 ok($tf_proxy->handle_http($t) == 0, 'drop Server from real server');
67 ok($tf_proxy->handle_http($t) == 0, 'rewrited urls work with encoded path');
70 ok($tf_proxy->stop_proc == 0, "Stopping lighttpd proxy");
72 ok($tf_real->stop_proc == 0, "Stopping lighttpd");
76 ok(0 == $tf_real->endspawnfcgi($php_child), "Stopping php");
H A Dcore-404-handler.t28 ok($tf->start_proc == 0, "Starting lighttpd") or die();
35 ok($tf->handle_http($t) == 0, '404 handler => static');
45 ok($tf->handle_http($t) == 0, '404 handler => dynamic(200)');
52 ok($tf->handle_http($t) == 0, '404 handler => dynamic(302)');
59 ok($tf->handle_http($t) == 0, '404 handler => dynamic(404)');
66 ok($tf->handle_http($t) == 0, '404 handler => dynamic(nostatus)');
73 ok($tf->handle_http($t) == 0, '404 generated by CGI should stay 404');
75 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dmod-rewrite.t23 ok(-1 != ($php_child = $tf->spawnfcgi($phpbin, 1026)), "Spawning php");
29 ok($tf->start_proc == 0, "Starting lighttpd") or goto cleanup;
37 ok($tf->handle_http($t) == 0, 'valid request');
45 ok($tf->handle_http($t) == 0, 'valid request');
53 ok($tf->handle_http($t) == 0, 'valid request');
61 ok($tf->handle_http($t) == 0, 'not existing file rewrite');
63 ok($tf->stop_proc == 0, "Stopping lighttpd");
68 ok(0 == $tf->endspawnfcgi($php_child), "Stopping php");
H A Dcore-keepalive.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
31 ok($tf->handle_http($t) == 0, 'Explicit HTTP/1.0 Keep-Alive');
47 ok($tf->handle_http($t) == 0, 'Explicit HTTP/1.0 Keep-Alive');
61 ok($tf->handle_http($t) == 0, 'Implicit HTTP/1.0 Keep-Alive');
75 ok($tf->handle_http($t) == 0, 'Explicit HTTP/1.1 Keep-Alive');
89 ok($tf->handle_http($t) == 0, 'Implicit HTTP/1.1 Keep-Alive');
91 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dmod-redirect.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
25 ok($tf->handle_http($t) == 0, 'external redirect');
33 ok($tf->handle_http($t) == 0, 'external redirect should have a Content-Length: 0');
41 ok($tf->handle_http($t) == 0, 'external redirect with cond regsub');
49 ok($tf->handle_http($t) == 0, 'external redirect with cond regsub on remoteip');
57 ok($tf->handle_http($t) == 0, 'external redirect with cond regsub on remoteip2');
59 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dmod-secdownload.t18 ok($tf->start_proc == 0, "Starting lighttpd") or die();
32 ok($tf->handle_http($t) == 0, 'secdownload');
44 ok($tf->handle_http($t) == 0, 'secdownload - gone (timeout)');
53 ok($tf->handle_http($t) == 0, 'secdownload - direct access');
62 ok($tf->handle_http($t) == 0, 'secdownload - conditional access');
76 ok($tf->handle_http($t) == 0, 'secdownload - timeout');
78 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dmod-setenv.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
25 ok($tf->handle_http($t) == 0, 'query first setenv');
33 ok($tf->handle_http($t) == 0, 'query second setenv');
41 ok($tf->handle_http($t) == 0, 'query add-request-header');
49 ok($tf->handle_http($t) == 0, 'query add-response-header');
51 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dmod-userdir.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
26 ok($tf->handle_http($t) == 0, 'valid user');
33 ok($tf->handle_http($t) == 0, 'valid user + redirect');
41 ok($tf->handle_http($t) == 0, 'valid user + redirect');
43 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dmod-ssi.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
26 ok($tf->handle_http($t) == 0, 'ssi - echo ');
35 ok($tf->handle_http($t) == 0, 'ssi - echo ');
38 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dmod-access.t17 ok($tf->start_proc == 0, "Starting lighttpd") or die();
24 ok($tf->handle_http($t) == 0, 'forbid access to ...~');
31 ok($tf->handle_http($t) == 0, '#1230 - forbid access to ...~ - trailing slash');
33 ok($tf->stop_proc == 0, "Stopping lighttpd");
H A Dcore-var-include.t21 ok($tf->start_proc == 0, "Starting lighttpd") or die();
25 ok($tf->handle_http($t) == 0, 'basic test');
58 ok($tf->handle_http($t) == 0, $test);
61 ok($tf->stop_proc == 0, "Stopping lighttpd");
/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dconfigparser.y109 ctx->ok = 0;
147 if (ctx->ok) { in key()
178 ctx->ok = 0; in key()
224 ctx->ok = 0; in expression()
253 ctx->ok = 0; in value()
298 ctx->ok = 0; in aelements()
355 ctx->ok = 0; in condlines()
386 ctx->ok = 0; in SRVVARNAME()
544 if (ctx->ok) { in stringop()
560 if (ctx->ok) { in stringop()
[all …]
/mOS-networking-stack/samples/lighttpd-1.4.32/doc/outdated/
H A Dplugins.txt129 HANDLER_GO_ON if ok
139 HANDLER_GO_ON if ok
149 HANDLER_GO_ON if ok
159 HANDLER_GO_ON if ok
169 HANDLER_GO_ON if ok
180 HANDLER_GO_ON if ok
191 HANDLER_GO_ON if ok
202 HANDLER_GO_ON if ok
213 HANDLER_GO_ON if ok
224 HANDLER_GO_ON if ok
[all …]

12