Annotation of parser3/tests/httpd/ok.log, revision 1.7

1.1       moko        1: running test 001.txt
                      2: HTTP/1.0 200 OK
                      3: Content-Type: text/html; charset=UTF-8
                      4: Server: Parser3
                      5: Connection: close
                      6: Content-Length: 159
                      7: 
                      8: 2+2 is 4
                      9: {
                     10: "SERVER_NAME":"parser.ru",
                     11: "REMOTE_ADDR":"127.0.0.1",
                     12: "HTTP_HOST":"parser.ru",
                     13: "SERVER_PORT":"8100",
                     14: "REQUEST_URI":"\/",
                     15: "REQUEST_METHOD":"GET"
                     16: }
                     17: {}
                     18: =============
                     19: running test 002.txt
                     20: HTTP/1.0 501 Not Implemented
                     21: Content-Type: text/plain
                     22: 
                     23: invalid request method
                     24: =============
                     25: running test 003.txt
                     26: HTTP/1.0 200 OK
                     27: Content-Type: text/html; charset=UTF-8
                     28: Server: Parser3
                     29: Connection: close
                     30: Content-Length: 162
                     31: 
                     32: 2+2 is 4
                     33: {
                     34: "HTTP_CONTENT_LENGTH":"10",
                     35: "SERVER_NAME":"localhost",
                     36: "REMOTE_ADDR":"127.0.0.1",
                     37: "SERVER_PORT":"8100",
                     38: "REQUEST_URI":"\/",
                     39: "REQUEST_METHOD":"GET"
                     40: }
                     41: {}
                     42: =============
                     43: running test 004.txt
                     44: HTTP/1.0 404 Not Found
                     45: Content-Type: text/html; charset=UTF-8
                     46: Server: Parser3
                     47: Connection: close
                     48: Content-Length: 47
                     49: 
                     50: The requested URL was not found on this server.
                     51: =============
                     52: running test 005.txt
                     53: HTTP/1.0 400 Bad Request
                     54: Content-Type: text/plain
                     55: 
                     56: bad response from host - bad header ":value"
                     57: =============
                     58: running test 007.txt
                     59: HTTP/1.0 400 Bad Request
                     60: Content-Type: text/plain
                     61: 
                     62: invalid uri '/../data/test.txt'
                     63: =============
                     64: running test 008.txt
                     65: HTTP/1.0 400 Bad Request
                     66: Content-Type: text/plain
                     67: 
                     68: invalid uri '%2Ftest.txt'
                     69: =============
                     70: running test 009.txt
                     71: HTTP/1.0 400 Bad Request
                     72: Content-Type: text/plain
                     73: 
                     74: invalid uri '/.%2E/data/test.txt'
                     75: =============
                     76: running test 010.txt
                     77: HTTP/1.0 400 Bad Request
                     78: Content-Type: text/plain
                     79: 
                     80: invalid uri '/test%2Ftest.txt'
                     81: =============
                     82: running test 011.txt
                     83: HTTP/1.0 400 Bad Request
                     84: Content-Type: text/plain
                     85: 
                     86: invalid uri 'test.txt'
                     87: =============
                     88: running test 012.txt
                     89: HTTP/1.0 200 OK
                     90: Content-Type: text/plain
                     91: Server: Parser3
                     92: Connection: close
                     93: Accept-Ranges: bytes
                     94: Content-Length: 15
1.2       moko       95: Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT
1.1       moko       96: 
                     97: test?test.test!
                     98: =============
                     99: running test 013.txt
                    100: HTTP/1.0 400 Bad Request
                    101: Content-Type: text/plain
                    102: 
                    103: invalid uri '/.%2E\data/test.txt'
                    104: =============
                    105: running test 014.txt
                    106: HTTP/1.0 200 OK
                    107: Content-Type: text/html; charset=UTF-8
                    108: Server: Parser3
                    109: Connection: close
                    110: Content-Length: 145
                    111: 
                    112: 2+2 is 4
                    113: {
                    114: "SERVER_NAME":"localhost",
                    115: "REMOTE_ADDR":"127.0.0.1",
                    116: "REQUEST_URI":"\/%00test.txt",
                    117: "SERVER_PORT":"8100",
                    118: "REQUEST_METHOD":"GET"
                    119: }
                    120: {}
                    121: =============
                    122: running test 015.txt
                    123: HTTP/1.0 206 Partial Content
                    124: Content-Type: text/plain
                    125: Server: Parser3
                    126: Connection: close
                    127: Accept-Ranges: bytes
                    128: Content-Range: bytes 5-9/15
                    129: Content-Length: 5
1.2       moko      130: Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT
1.1       moko      131: 
                    132: test.
                    133: =============
                    134: running test 016.txt
                    135: HTTP/1.0 400 Bad Request
                    136: Content-Type: text/plain
                    137: 
                    138: Invalid range
                    139: =============
                    140: running test 017.txt
                    141: HTTP/1.0 206 Partial Content
                    142: Content-Type: text/plain
                    143: Server: Parser3
                    144: Connection: close
                    145: Accept-Ranges: bytes
                    146: Content-Range: bytes 5-14/15
                    147: Content-Length: 10
1.2       moko      148: Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT
1.1       moko      149: 
                    150: test.test!
                    151: =============
                    152: running test 018.txt
                    153: HTTP/1.0 206 Partial Content
                    154: Content-Type: text/plain
                    155: Server: Parser3
                    156: Connection: close
                    157: Accept-Ranges: bytes
                    158: Content-Range: bytes 10-14/15
                    159: Content-Length: 5
1.2       moko      160: Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT
1.1       moko      161: 
                    162: test!
                    163: =============
                    164: running test 019.txt
                    165: HTTP/1.0 416 Range Not Satisfiable
                    166: Content-Type: text/plain
                    167: 
                    168: 
                    169: =============
                    170: running test 020.txt
                    171: HTTP/1.0 206 Partial Content
                    172: Content-Type: text/plain
                    173: Server: Parser3
                    174: Connection: close
                    175: Accept-Ranges: bytes
                    176: Content-Range: bytes 10-14/15
                    177: Content-Length: 5
1.2       moko      178: Last-Modified: Sun, 20 Oct 2024 23:34:07 GMT
1.1       moko      179: 
                    180: test!
                    181: =============
                    182: running test 021.txt
                    183: HTTP/1.0 501 Not Implemented
                    184: Content-Type: text/plain
                    185: 
                    186: Multiple ranges are not supported
                    187: =============
                    188: running test 022.txt
                    189: HTTP/1.0 501 Not Implemented
                    190: Content-Type: text/plain
                    191: 
                    192: invalid request method
                    193: =============
                    194: running test 023.txt
                    195: HTTP/1.0 403 Forbidden
                    196: Content-Type: text/html; charset=UTF-8
1.7     ! moko      197: Server: Parser3.5.2b (compiled on x86_64-unknown-linux-gnu)
1.1       moko      198: Date: WWW, DD MMM YYYY HH MM:SS GMT
                    199: Connection: close
                    200: Content-Length: 17
                    201: 
                    202: Permission denied
                    203: =============
                    204: running test 024.txt
                    205: HTTP/1.0 401 Unauthorized
                    206: Content-Type: text/html; charset=UTF-8
1.7     ! moko      207: Server: Parser3.5.2b (compiled on x86_64-unknown-linux-gnu)
1.1       moko      208: Date: WWW, DD MMM YYYY HH MM:SS GMT
                    209: Connection: close
                    210: Www-Authenticate: Basic realm="auth test"
                    211: Content-Length: 22
                    212: 
                    213: Authorization Required
                    214: =============
                    215: running test 025.txt
                    216: HTTP/1.0 200 OK
                    217: Content-Type: text/html; charset=UTF-8
                    218: Server: Parser3
                    219: Connection: close
                    220: Content-Length: 209
                    221: 
                    222: 2+2 is 4
                    223: {
                    224: "SERVER_NAME":"localhost",
                    225: "REMOTE_ADDR":"127.0.0.1",
                    226: "HTTP_AUTHORIZATION":"Basic YXV0aDp0ZXN0",
                    227: "REMOTE_USER":"auth",
                    228: "SERVER_PORT":"8100",
                    229: "REQUEST_URI":"\/index.html",
                    230: "REQUEST_METHOD":"GET"
                    231: }
                    232: {}
                    233: =============
                    234: running test 026.txt
                    235: HTTP/1.0 200 OK
                    236: Content-Type: text/html; charset=UTF-8
                    237: Server: Parser3
                    238: Connection: close
                    239: Content-Length: 237
                    240: 
                    241: 2+2 is 4
                    242: {
                    243: "HTTP_CONTENT_LENGTH":"10",
                    244: "SERVER_NAME":"localhost",
                    245: "REMOTE_ADDR":"127.0.0.1",
                    246: "SERVER_PORT":"8100",
                    247: "REQUEST_URI":"\/",
                    248: "HTTP_CONTENT_TYPE":"application\/x-www-form-urlencoded",
                    249: "REQUEST_METHOD":"POST"
                    250: }
                    251: {
                    252: "name":"value"
                    253: }
                    254: =============
                    255: running test 027.txt
                    256: HTTP/1.0 200 OK
                    257: Content-Type: text/html; charset=UTF-8
                    258: Server: Parser3
                    259: Connection: close
                    260: Content-Length: 232
                    261: 
                    262: 2+2 is 4
                    263: {
                    264: "HTTP_CONTENT_LENGTH":"6",
                    265: "SERVER_NAME":"localhost",
                    266: "REMOTE_ADDR":"127.0.0.1",
                    267: "SERVER_PORT":"8100",
                    268: "REQUEST_URI":"\/",
                    269: "HTTP_CONTENT_TYPE":"application\/x-www-form-urlencoded",
                    270: "REQUEST_METHOD":"POST"
                    271: }
                    272: {
                    273: "name":"v"
                    274: }
                    275: =============
                    276: running test 028.txt
                    277: HTTP/1.0 200 OK
                    278: Content-Type: text/html; charset=UTF-8
                    279: Server: Parser3
                    280: Connection: close
                    281: Content-Length: 207
                    282: 
                    283: 2+2 is 4
                    284: {
                    285: "SERVER_NAME":"localhost",
                    286: "REMOTE_ADDR":"127.0.0.1",
                    287: "QUERY_STRING":"name=value&a=b",
                    288: "SERVER_PORT":"8100",
                    289: "REQUEST_URI":"\/?name=value&a=b",
                    290: "REQUEST_METHOD":"GET"
                    291: }
                    292: {
                    293: "name":"value",
                    294: "a":"b"
                    295: }
                    296: =============
1.3       moko      297: running test 029.txt
                    298: HTTP/1.0 404 Not Found
1.4       moko      299: Content-Type: text/html
                    300: Content-Length: 48
1.3       moko      301: 
1.4       moko      302: The requested URL was not found on this server.
                    303: 
1.3       moko      304: =============
1.1       moko      305: running test 030.txt
1.5       moko      306: HTTP/1.0 200 OK
                    307: Content-Type: text/html; charset=UTF-8
                    308: Server: Parser3
                    309: Connection: close
                    310: Content-Length: 269
                    311: 
                    312: fields: {
                    313: "name":"v1",
                    314: "a":"b",
                    315: "nameless":"one"
                    316: }
                    317: tables: {
                    318: "name":[
                    319: {"field":"v1"},
                    320: {"field":"v2"}
                    321: ],
                    322: "a":[
                    323: {"field":"b"},
                    324: {"field":"c"}
                    325: ],
                    326: "nameless":[
                    327: {"field":"one"}
                    328: ]
                    329: }
                    330: files: {}
                    331: elements: {
                    332: "name":[
                    333: "v1",
                    334: "v2"
                    335: ],
                    336: "a":[
                    337: "b",
                    338: "c"
                    339: ],
                    340: "nameless":[
                    341: "one"
                    342: ]
                    343: }
                    344: name: v1
                    345: =============
                    346: running test 031.curl
                    347: fields: {
                    348: "file":{
                    349: "class":"file",
                    350: "name":"test.txt",
                    351: "size":15,
                    352: "mode":"binary",
                    353: "content-type":"application\/octet-stream"
                    354: },
                    355: "another-file":{
                    356: "class":"file",
                    357: "name":"test.txt",
                    358: "size":15,
                    359: "mode":"binary",
                    360: "content-type":"application\/octet-stream"
                    361: },
                    362: "name":"value"
                    363: }
                    364: tables: {
                    365: "file":[
                    366: {"field":"just text"}
                    367: ],
                    368: "name":[
                    369: {"field":"value"},
                    370: {"field":"value2"},
                    371: {"field":"value3"}
                    372: ]
                    373: }
                    374: files: {
                    375: "file":{
                    376: "0":{
                    377: "class":"file",
                    378: "name":"test.txt",
                    379: "size":15,
                    380: "mode":"binary",
                    381: "content-type":"application\/octet-stream"
                    382: },
                    383: "1":{
                    384: "class":"file",
                    385: "name":"index.html",
                    386: "size":71,
                    387: "mode":"binary",
                    388: "content-type":"application\/octet-stream"
                    389: }
                    390: },
                    391: "another-file":{
                    392: "0":{
                    393: "class":"file",
                    394: "name":"test.txt",
                    395: "size":15,
                    396: "mode":"binary",
                    397: "content-type":"application\/octet-stream"
                    398: }
                    399: }
                    400: }
                    401: elements: {
                    402: "file":[
                    403: {
                    404: "class":"file",
                    405: "name":"test.txt",
                    406: "size":15,
                    407: "mode":"binary",
                    408: "content-type":"application\/octet-stream"
                    409: },
                    410: "just text",
                    411: {
                    412: "class":"file",
                    413: "name":"index.html",
                    414: "size":71,
                    415: "mode":"binary",
                    416: "content-type":"application\/octet-stream"
                    417: }
                    418: ],
                    419: "another-file":[
                    420: {
                    421: "class":"file",
                    422: "name":"test.txt",
                    423: "size":15,
                    424: "mode":"binary",
                    425: "content-type":"application\/octet-stream"
                    426: }
                    427: ],
                    428: "name":[
                    429: "value",
                    430: "value2",
                    431: "value3"
                    432: ]
                    433: }
                    434: name: value
                    435: =============
1.6       moko      436: running test 032.txt
                    437: HTTP/1.0 200 OK
                    438: Content-Type: text/html; charset=Windows-1251
                    439: Server: Parser3
                    440: Connection: close
                    441: Content-Length: 160
                    442: 
                    443: 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"
                    444: path: "/-/"
                    445: "name"=""
                    446: "charset"="Windows-1251"
                    447: =============
                    448: running test 033.txt
                    449: HTTP/1.0 200 OK
                    450: Content-Type: text/html; charset=UTF-8
                    451: Server: Parser3
                    452: Connection: close
                    453: Content-Length: 87
                    454: 
                    455: uri: "/%D0%BF%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8/"
                    456: path: "/по-русски/"
                    457: 
                    458: =============
                    459: running test 034.txt
                    460: HTTP/1.0 200 OK
                    461: Content-Type: text/html; charset=UTF-8
                    462: Server: Parser3
                    463: Connection: close
                    464: Content-Length: 228
                    465: 
                    466: 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"
                    467: path: "/буквы? - конечно! буквы%😊/"
                    468: "name"=""
                    469: =============
                    470: running test 035.txt
                    471: HTTP/1.0 200 OK
                    472: Content-Type: text/html; charset=Windows-1251
                    473: Server: Parser3
                    474: Connection: close
                    475: Content-Length: 269
                    476: 
                    477: 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"
                    478: path: "/? - ! %%F0%9F%98%8A/"
                    479: "name"=""
                    480: "charset"="Windows-1251"
                    481: =============
                    482: running test 036.txt
                    483: HTTP/1.0 200 OK
                    484: Content-Type: text/html; charset=UTF-8
                    485: Server: Parser3
                    486: Connection: close
                    487: Content-Length: 69
                    488: 
                    489: uri: "/broken-%D0%B1%D1%83%D0%BA%D0%B2%D1"
                    490: path: "/broken-букв"
                    491: 
                    492: =============
                    493: running test 037.txt
                    494: HTTP/1.0 200 OK
                    495: Content-Type: text/html; charset=UTF-8
                    496: Server: Parser3
                    497: Connection: close
                    498: Content-Length: 51
                    499: 
                    500: uri: "/broken-букв"
                    501: path: "/broken-букв"
                    502: 
                    503: =============
                    504: running test 038.txt
                    505: HTTP/1.0 200 OK
                    506: Content-Type: text/html; charset=UTF-8
                    507: Server: Parser3
                    508: Connection: close
                    509: Content-Length: 31
                    510: 
                    511: uri: "/test/%D"
                    512: path: "/test/"
                    513: 
                    514: =============
1.5       moko      515: running test 040.txt
1.1       moko      516: HTTP/1.0 408 Request Timeout
                    517: Content-Type: text/plain
                    518: 
                    519: timeout occurred while receiving request
                    520: =============
1.7     ! moko      521: running test 041.txt
        !           522: HTTP/1.0 206 Partial Content
        !           523: Content-Type: text/plain
        !           524: Server: Parser3
        !           525: Connection: close
        !           526: Accept-Ranges: bytes
        !           527: Content-Range: bytes 5-14/15
        !           528: Content-Length: 10
        !           529: Last-Modified: WWW, DD MMM YYYY HH MM:SS GMT
        !           530: 
        !           531: test.test!
        !           532: =============
        !           533: running test 042.txt
        !           534: HTTP/1.0 416 Range Not Satisfiable
        !           535: Content-Type: text/plain
        !           536: 
        !           537: 
        !           538: =============
        !           539: running test 043.txt
        !           540: HTTP/1.0 416 Range Not Satisfiable
        !           541: Content-Type: text/plain
        !           542: 
        !           543: 
        !           544: =============

E-mail: