--- parser3/tests/httpd/ok.log 2024/10/20 23:34:07 1.1 +++ parser3/tests/httpd/ok.log 2024/11/23 15:37:29 1.5 @@ -92,7 +92,7 @@ Server: Parser3 Connection: close Accept-Ranges: bytes Content-Length: 15 -Last-Modified: Tue, 08 Dec 2020 22:46:59 GMT +Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT test?test.test! ============= @@ -127,17 +127,13 @@ Connection: close Accept-Ranges: bytes Content-Range: bytes 5-9/15 Content-Length: 5 -Last-Modified: Tue, 08 Dec 2020 22:46:59 GMT +Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT test. ============= running test 016.txt HTTP/1.0 400 Bad Request Content-Type: text/plain -Server: Parser3 -Connection: close -Accept-Ranges: bytes -Content-Type: text/plain Invalid range ============= @@ -149,7 +145,7 @@ Connection: close Accept-Ranges: bytes Content-Range: bytes 5-14/15 Content-Length: 10 -Last-Modified: Tue, 08 Dec 2020 22:46:59 GMT +Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT test.test! ============= @@ -161,17 +157,13 @@ Connection: close Accept-Ranges: bytes Content-Range: bytes 10-14/15 Content-Length: 5 -Last-Modified: Tue, 08 Dec 2020 22:46:59 GMT +Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT test! ============= running test 019.txt HTTP/1.0 416 Range Not Satisfiable Content-Type: text/plain -Server: Parser3 -Connection: close -Accept-Ranges: bytes -Content-Type: text/plain ============= @@ -183,17 +175,13 @@ Connection: close Accept-Ranges: bytes Content-Range: bytes 10-14/15 Content-Length: 5 -Last-Modified: Tue, 08 Dec 2020 22:46:59 GMT +Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT test! ============= running test 021.txt HTTP/1.0 501 Not Implemented Content-Type: text/plain -Server: Parser3 -Connection: close -Accept-Ranges: bytes -Content-Type: text/plain Multiple ranges are not supported ============= @@ -306,7 +294,146 @@ Content-Length: 207 "a":"b" } ============= +running test 029.txt +HTTP/1.0 404 Not Found +Content-Type: text/html +Content-Length: 48 + +The requested URL was not found on this server. + +============= running test 030.txt +HTTP/1.0 200 OK +Content-Type: text/html; charset=UTF-8 +Server: Parser3 +Connection: close +Content-Length: 269 + +fields: { +"name":"v1", +"a":"b", +"nameless":"one" +} +tables: { +"name":[ +{"field":"v1"}, +{"field":"v2"} +], +"a":[ +{"field":"b"}, +{"field":"c"} +], +"nameless":[ +{"field":"one"} +] +} +files: {} +elements: { +"name":[ +"v1", +"v2" +], +"a":[ +"b", +"c" +], +"nameless":[ +"one" +] +} +name: v1 +============= +running test 031.curl +fields: { +"file":{ +"class":"file", +"name":"test.txt", +"size":15, +"mode":"binary", +"content-type":"application\/octet-stream" +}, +"another-file":{ +"class":"file", +"name":"test.txt", +"size":15, +"mode":"binary", +"content-type":"application\/octet-stream" +}, +"name":"value" +} +tables: { +"file":[ +{"field":"just text"} +], +"name":[ +{"field":"value"}, +{"field":"value2"}, +{"field":"value3"} +] +} +files: { +"file":{ +"0":{ +"class":"file", +"name":"test.txt", +"size":15, +"mode":"binary", +"content-type":"application\/octet-stream" +}, +"1":{ +"class":"file", +"name":"index.html", +"size":71, +"mode":"binary", +"content-type":"application\/octet-stream" +} +}, +"another-file":{ +"0":{ +"class":"file", +"name":"test.txt", +"size":15, +"mode":"binary", +"content-type":"application\/octet-stream" +} +} +} +elements: { +"file":[ +{ +"class":"file", +"name":"test.txt", +"size":15, +"mode":"binary", +"content-type":"application\/octet-stream" +}, +"just text", +{ +"class":"file", +"name":"index.html", +"size":71, +"mode":"binary", +"content-type":"application\/octet-stream" +} +], +"another-file":[ +{ +"class":"file", +"name":"test.txt", +"size":15, +"mode":"binary", +"content-type":"application\/octet-stream" +} +], +"name":[ +"value", +"value2", +"value3" +] +} +name: value +============= +running test 040.txt HTTP/1.0 408 Request Timeout Content-Type: text/plain