--- parser3/tests/httpd/ok.log 2024/11/09 15:45:03 1.2 +++ parser3/tests/httpd/ok.log 2026/05/24 14:16:27 1.7 @@ -194,7 +194,7 @@ invalid request method running test 023.txt HTTP/1.0 403 Forbidden Content-Type: text/html; charset=UTF-8 -Server: Parser3.4.7b (compiled on x86_64-unknown-linux-gnu) +Server: Parser3.5.2b (compiled on x86_64-unknown-linux-gnu) Date: WWW, DD MMM YYYY HH MM:SS GMT Connection: close Content-Length: 17 @@ -204,7 +204,7 @@ Permission denied running test 024.txt HTTP/1.0 401 Unauthorized Content-Type: text/html; charset=UTF-8 -Server: Parser3.4.7b (compiled on x86_64-unknown-linux-gnu) +Server: Parser3.5.2b (compiled on x86_64-unknown-linux-gnu) Date: WWW, DD MMM YYYY HH MM:SS GMT Connection: close Www-Authenticate: Basic realm="auth test" @@ -294,9 +294,251 @@ 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 032.txt +HTTP/1.0 200 OK +Content-Type: text/html; charset=Windows-1251 +Server: Parser3 +Connection: close +Content-Length: 160 + +uri: "/%D0%BF%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8/?name=%F2%E5%F1%F2&charset=Windows-1251" +path: "/-/" +"name"="" +"charset"="Windows-1251" +============= +running test 033.txt +HTTP/1.0 200 OK +Content-Type: text/html; charset=UTF-8 +Server: Parser3 +Connection: close +Content-Length: 87 + +uri: "/%D0%BF%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8/" +path: "/по-русски/" + +============= +running test 034.txt +HTTP/1.0 200 OK +Content-Type: text/html; charset=UTF-8 +Server: Parser3 +Connection: close +Content-Length: 228 + +uri: "/%D0%B1%D1%83%D0%BA%D0%B2%D1%8B%3F%20-%20%D0%BA%D0%BE%D0%BD%D0%B5%D1%87%D0%BD%D0%BE!%20%D0%B1%D1%83%D0%BA%D0%B2%D1%8B%25%F0%9F%98%8A/?name=%F2%E5%F1%F2" +path: "/буквы? - конечно! буквы%😊/" +"name"="" +============= +running test 035.txt +HTTP/1.0 200 OK +Content-Type: text/html; charset=Windows-1251 +Server: Parser3 +Connection: close +Content-Length: 269 + +uri: "/%D0%B1%D1%83%D0%BA%D0%B2%D1%8B%3F%20-%20%D0%BA%D0%BE%D0%BD%D0%B5%D1%87%D0%BD%D0%BE!%20%D0%B1%D1%83%D0%BA%D0%B2%D1%8B%25%F0%9F%98%8A/?name=%F2%E5%F1%F2&charset=Windows-1251" +path: "/? - ! %%F0%9F%98%8A/" +"name"="" +"charset"="Windows-1251" +============= +running test 036.txt +HTTP/1.0 200 OK +Content-Type: text/html; charset=UTF-8 +Server: Parser3 +Connection: close +Content-Length: 69 + +uri: "/broken-%D0%B1%D1%83%D0%BA%D0%B2%D1" +path: "/broken-букв" + +============= +running test 037.txt +HTTP/1.0 200 OK +Content-Type: text/html; charset=UTF-8 +Server: Parser3 +Connection: close +Content-Length: 51 + +uri: "/broken-букв" +path: "/broken-букв" + +============= +running test 038.txt +HTTP/1.0 200 OK +Content-Type: text/html; charset=UTF-8 +Server: Parser3 +Connection: close +Content-Length: 31 + +uri: "/test/%D" +path: "/test/" + +============= +running test 040.txt HTTP/1.0 408 Request Timeout Content-Type: text/plain timeout occurred while receiving request ============= +running test 041.txt +HTTP/1.0 206 Partial Content +Content-Type: text/plain +Server: Parser3 +Connection: close +Accept-Ranges: bytes +Content-Range: bytes 5-14/15 +Content-Length: 10 +Last-Modified: WWW, DD MMM YYYY HH MM:SS GMT + +test.test! +============= +running test 042.txt +HTTP/1.0 416 Range Not Satisfiable +Content-Type: text/plain + + +============= +running test 043.txt +HTTP/1.0 416 Range Not Satisfiable +Content-Type: text/plain + + +=============