mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
More tests
This commit is contained in:
1 parent
0b4676b711
commit
da75a62a32
3 files changed
+17
-5
No files matched your search
@@ -339,6 +339,11 @@ unless (scalar(@ARGV) > 0 and $ARGV[0] eq "basic_tests") {
|
||||
o("GET /hello.txt HTTP/1.0\nAuthorization: $auth_header\n\n", 'HTTP/1.1 200 OK', 'GET regular file with auth');
|
||||
unlink "$root/.htpasswd";
|
||||
|
||||
my $x = 'x=' . 'A' x (200 * 1024);
|
||||
my $len = length($x);
|
||||
o("POST /env.cgi HTTP/1.0\r\nContent-Length: $len\r\n\r\n$x",
|
||||
'^HTTP/1.1 200 OK', 'Long POST');
|
||||
|
||||
o("GET /env.cgi HTTP/1.0\n\r\n", 'HTTP/1.1 200 OK', 'GET CGI file');
|
||||
o("GET /bad2.cgi HTTP/1.0\n\n", "HTTP/1.1 123 Please pass me to the client\r",
|
||||
'CGI Status code text');
|
||||
|
||||
Reference in new issue
Block a user