Annotation of embedaddon/curl/tests/data/test2008, revision 1.1

1.1     ! misho       1: <testcase>
        !             2: <info>
        !             3: <keywords>
        !             4: Metalink
        !             5: HTTP
        !             6: HTTP GET
        !             7: FILE
        !             8: </keywords>
        !             9: </info>
        !            10: 
        !            11: #
        !            12: # Server-side
        !            13: <reply>
        !            14: <data nocheck="yes">
        !            15: HTTP/1.1 200 OK
        !            16: Date: Thu, 21 Jun 2012 15:23:48 GMT
        !            17: Server: test-server/fake
        !            18: Content-Length: 43
        !            19: Connection: close
        !            20: Content-Type: text/html
        !            21: Content-Disposition: filename=name2008; charset=funny; option=strange
        !            22: Funny-head: yesyes
        !            23: 
        !            24: Some stuff delivered from an HTTP resource
        !            25: </data>
        !            26: </reply>
        !            27: 
        !            28: #
        !            29: # Client-side
        !            30: <client>
        !            31: <features>
        !            32: file
        !            33: Metalink
        !            34: </features>
        !            35: <server>
        !            36: http
        !            37: </server>
        !            38:  <name>
        !            39: Metalink local XML file, HTTP resource, using -o fname -D file
        !            40:  </name>
        !            41: <command option="no-output,no-include">
        !            42: --metalink file://%PWD/log/test2008.metalink -o log/outfile2008 -D log/heads2008
        !            43: </command>
        !            44: # local metalink file written before test command runs
        !            45: <file name="log/test2008.metalink">
        !            46: <?xml version="1.0" encoding="utf-8"?>
        !            47: <metalink version="3.0" xmlns="http://www.metalinker.org/">
        !            48:  <files>
        !            49:   <file name="log/download2008">
        !            50:    <verification>
        !            51:     <hash type="md5">we-only-check-the-strongest-hash-provided</hash>
        !            52:     <hash type="sha256">711b1b566b536c5baae9b36f2f5c1830a7c8ff126d1afa2febc5b59f8d0aab54</hash>
        !            53:    </verification>
        !            54:    <resources maxconnections="1">
        !            55:     <url type="http" preference="90">http://%HOSTIP:%HTTPPORT/2008</url>
        !            56:    </resources>
        !            57:   </file>
        !            58:  </files>
        !            59: </metalink>
        !            60: </file>
        !            61: <postcheck>
        !            62: perl %SRCDIR/libtest/notexists.pl log/2008 log/name2008 log/outfile2008
        !            63: </postcheck>
        !            64: </client>
        !            65: 
        !            66: #
        !            67: # Verify data after the test has been "shot"
        !            68: <verify>
        !            69: <strip>
        !            70: ^User-Agent:.*
        !            71: </strip>
        !            72: <protocol>
        !            73: GET /2008 HTTP/1.1
        !            74: Host: %HOSTIP:%HTTPPORT
        !            75: Accept: */*
        !            76: 
        !            77: </protocol>
        !            78: <file1 name="log/download2008">
        !            79: Some stuff delivered from an HTTP resource
        !            80: </file1>
        !            81: # The Content-Length replace here is to handle with 4/5 digit port number in
        !            82: # the content
        !            83: <stripfile2>
        !            84: s/Last-Modified:.*//
        !            85: s/Content-Length: 49[67]/Content-Length: yeps/
        !            86: </stripfile2>
        !            87: <file2 name="log/heads2008">
        !            88: Content-Length: yeps
        !            89: Accept-ranges: bytes
        !            90: 
        !            91: 
        !            92: HTTP/1.1 200 OK
        !            93: Date: Thu, 21 Jun 2012 15:23:48 GMT
        !            94: Server: test-server/fake
        !            95: Content-Length: 43
        !            96: Connection: close
        !            97: Content-Type: text/html
        !            98: Content-Disposition: filename=name2008; charset=funny; option=strange
        !            99: Funny-head: yesyes
        !           100: 
        !           101: </file2>
        !           102: <file3 name="log/stdout2008">
        !           103: </file3>
        !           104: <file4 name="log/stderr2008" mode="text">
        !           105: Metalink: parsing (file://%PWD/log/test2008.metalink) metalink/XML...
        !           106: Metalink: parsing (file://%PWD/log/test2008.metalink) OK
        !           107: Metalink: fetching (log/download2008) from (http://%HOSTIP:%HTTPPORT/2008)...
        !           108: Metalink: fetching (log/download2008) from (http://%HOSTIP:%HTTPPORT/2008) OK
        !           109: Metalink: validating (log/download2008)...
        !           110: Metalink: validating (log/download2008) [sha-256] OK
        !           111: </file4>
        !           112: <stripfile4>
        !           113: $_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
        !           114: </stripfile4>
        !           115: </verify>
        !           116: </testcase>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>