mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
test case for CGI status text
This commit is contained in:
1 parent
6dc1b347a0
commit
fbe059acaa
1 file changed
+2
-1
+2
-1
@@ -338,7 +338,8 @@ unless (scalar(@ARGV) > 0 and $ARGV[0] eq "basic_tests") {
|
|||||||
unlink "$root/.htpasswd";
|
unlink "$root/.htpasswd";
|
||||||
|
|
||||||
o("GET /env.cgi HTTP/1.0\n\r\n", 'HTTP/1.1 200 OK', 'GET CGI file');
|
o("GET /env.cgi HTTP/1.0\n\r\n", 'HTTP/1.1 200 OK', 'GET CGI file');
|
||||||
#o("GET /redirect.cgi HTTP/1.0\n\n", 'HTTP/1.1 302', 'Redirect');
|
o("GET /bad2.cgi HTTP/1.0\n\n", "HTTP/1.1 123 Please pass me to the client\r",
|
||||||
|
'CGI Status code text');
|
||||||
o("GET /sh.cgi HTTP/1.0\n\r\n", 'shell script CGI',
|
o("GET /sh.cgi HTTP/1.0\n\r\n", 'shell script CGI',
|
||||||
'GET sh CGI file') unless on_windows();
|
'GET sh CGI file') unless on_windows();
|
||||||
o("GET /env.cgi?var=HELLO HTTP/1.0\n\n", 'QUERY_STRING=var=HELLO',
|
o("GET /env.cgi?var=HELLO HTTP/1.0\n\n", 'QUERY_STRING=var=HELLO',
|
||||||
|
|||||||
Reference in new issue
Block a user