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

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.8       moko       95: Last-Modified: DATE 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.8       moko      130: Last-Modified: DATE 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.8       moko      148: Last-Modified: DATE 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.8       moko      160: Last-Modified: DATE 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.8       moko      178: Last-Modified: DATE 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.8       moko      197: Server: Parser3.X.X ...
                    198: Date: DATE GMT
1.1       moko      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.8       moko      207: Server: Parser3.X.X ...
                    208: Date: DATE GMT
1.1       moko      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
1.9     ! moko      310: Content-Length: 270
1.5       moko      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
1.9     ! moko      345: 
1.5       moko      346: =============
                    347: running test 031.curl
                    348: fields: {
                    349: "file":{
                    350: "class":"file",
                    351: "name":"test.txt",
                    352: "size":15,
                    353: "mode":"binary",
                    354: "content-type":"application\/octet-stream"
                    355: },
                    356: "another-file":{
                    357: "class":"file",
                    358: "name":"test.txt",
                    359: "size":15,
                    360: "mode":"binary",
                    361: "content-type":"application\/octet-stream"
                    362: },
                    363: "name":"value"
                    364: }
                    365: tables: {
                    366: "file":[
                    367: {"field":"just text"}
                    368: ],
                    369: "name":[
                    370: {"field":"value"},
                    371: {"field":"value2"},
                    372: {"field":"value3"}
                    373: ]
                    374: }
                    375: files: {
                    376: "file":{
                    377: "0":{
                    378: "class":"file",
                    379: "name":"test.txt",
                    380: "size":15,
                    381: "mode":"binary",
                    382: "content-type":"application\/octet-stream"
                    383: },
                    384: "1":{
                    385: "class":"file",
                    386: "name":"index.html",
                    387: "size":71,
                    388: "mode":"binary",
                    389: "content-type":"application\/octet-stream"
                    390: }
                    391: },
                    392: "another-file":{
                    393: "0":{
                    394: "class":"file",
                    395: "name":"test.txt",
                    396: "size":15,
                    397: "mode":"binary",
                    398: "content-type":"application\/octet-stream"
                    399: }
                    400: }
                    401: }
                    402: elements: {
                    403: "file":[
                    404: {
                    405: "class":"file",
                    406: "name":"test.txt",
                    407: "size":15,
                    408: "mode":"binary",
                    409: "content-type":"application\/octet-stream"
                    410: },
                    411: "just text",
                    412: {
                    413: "class":"file",
                    414: "name":"index.html",
                    415: "size":71,
                    416: "mode":"binary",
                    417: "content-type":"application\/octet-stream"
                    418: }
                    419: ],
                    420: "another-file":[
                    421: {
                    422: "class":"file",
                    423: "name":"test.txt",
                    424: "size":15,
                    425: "mode":"binary",
                    426: "content-type":"application\/octet-stream"
                    427: }
                    428: ],
                    429: "name":[
                    430: "value",
                    431: "value2",
                    432: "value3"
                    433: ]
                    434: }
                    435: name: value
1.9     ! moko      436: 
1.5       moko      437: =============
1.6       moko      438: running test 032.txt
                    439: HTTP/1.0 200 OK
                    440: Content-Type: text/html; charset=Windows-1251
                    441: Server: Parser3
                    442: Connection: close
                    443: Content-Length: 160
                    444: 
                    445: 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"
                    446: path: "/ïî-ðóññêè/"
                    447: "name"="òåñò"
                    448: "charset"="Windows-1251"
                    449: =============
                    450: running test 033.txt
                    451: HTTP/1.0 200 OK
                    452: Content-Type: text/html; charset=UTF-8
                    453: Server: Parser3
                    454: Connection: close
                    455: Content-Length: 87
                    456: 
                    457: uri: "/%D0%BF%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8/"
                    458: path: "/по-руÑ�Ñ�ки/"
                    459: 
                    460: =============
                    461: running test 034.txt
                    462: HTTP/1.0 200 OK
                    463: Content-Type: text/html; charset=UTF-8
                    464: Server: Parser3
                    465: Connection: close
                    466: Content-Length: 228
                    467: 
                    468: 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"
                    469: path: "/буквы? - конечно! буквы%😊/"
                    470: "name"="òåñò"
                    471: =============
                    472: running test 035.txt
                    473: HTTP/1.0 200 OK
                    474: Content-Type: text/html; charset=Windows-1251
                    475: Server: Parser3
                    476: Connection: close
                    477: Content-Length: 269
                    478: 
                    479: 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"
                    480: path: "/áóêâû? - êîíå÷íî! áóêâû%%F0%9F%98%8A/"
                    481: "name"="òåñò"
                    482: "charset"="Windows-1251"
                    483: =============
                    484: running test 036.txt
                    485: HTTP/1.0 200 OK
                    486: Content-Type: text/html; charset=UTF-8
                    487: Server: Parser3
                    488: Connection: close
                    489: Content-Length: 69
                    490: 
                    491: uri: "/broken-%D0%B1%D1%83%D0%BA%D0%B2%D1"
                    492: path: "/broken-буквÑ"
                    493: 
                    494: =============
                    495: running test 037.txt
                    496: HTTP/1.0 200 OK
                    497: Content-Type: text/html; charset=UTF-8
                    498: Server: Parser3
                    499: Connection: close
                    500: Content-Length: 51
                    501: 
                    502: uri: "/broken-буквÑ"
                    503: path: "/broken-буквÑ"
                    504: 
                    505: =============
                    506: running test 038.txt
                    507: HTTP/1.0 200 OK
                    508: Content-Type: text/html; charset=UTF-8
                    509: Server: Parser3
                    510: Connection: close
                    511: Content-Length: 31
                    512: 
                    513: uri: "/test/%D"
                    514: path: "/test/"
                    515: 
                    516: =============
1.5       moko      517: running test 040.txt
1.1       moko      518: HTTP/1.0 408 Request Timeout
                    519: Content-Type: text/plain
                    520: 
                    521: timeout occurred while receiving request
                    522: =============
1.7       moko      523: running test 041.txt
                    524: HTTP/1.0 206 Partial Content
                    525: Content-Type: text/plain
                    526: Server: Parser3
                    527: Connection: close
                    528: Accept-Ranges: bytes
                    529: Content-Range: bytes 5-14/15
                    530: Content-Length: 10
1.8       moko      531: Last-Modified: DATE GMT
1.7       moko      532: 
                    533: test.test!
                    534: =============
                    535: running test 042.txt
                    536: HTTP/1.0 416 Range Not Satisfiable
                    537: Content-Type: text/plain
                    538: 
                    539: 
                    540: =============
                    541: running test 043.txt
                    542: HTTP/1.0 416 Range Not Satisfiable
                    543: Content-Type: text/plain
                    544: 
                    545: 
                    546: =============
1.9     ! moko      547: running test 044.txt
        !           548: HTTP/1.0 200 OK
        !           549: Content-Type: text/html; charset=UTF-8
        !           550: Server: Parser3
        !           551: Connection: close
        !           552: Content-Length: 193
        !           553: 
        !           554: fields: {
        !           555: "conf":"1",
        !           556: "post":"2"
        !           557: }
        !           558: tables: {
        !           559: "conf":[
        !           560: {"field":"1"}
        !           561: ],
        !           562: "post":[
        !           563: {"field":"2"}
        !           564: ]
        !           565: }
        !           566: files: {}
        !           567: elements: {
        !           568: "conf":[
        !           569: "1"
        !           570: ],
        !           571: "post":[
        !           572: "2"
        !           573: ]
        !           574: }
        !           575: name: fields-before-conf: {
        !           576: "conf":"1"
        !           577: }
        !           578: =============

E-mail: