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

1.1     ! misho       1: <testcase>
        !             2: <info>
        !             3: <keywords>
        !             4: HTTP
        !             5: HTTP GET
        !             6: HTTP CONNECT
        !             7: HTTP proxy
        !             8: proxytunnel
        !             9: </keywords>
        !            10: </info>
        !            11: 
        !            12: #
        !            13: # Server-side
        !            14: <reply>
        !            15: <connect>
        !            16: HTTP/1.1 200 Mighty fine indeed
        !            17: Server: test tunnel 2000
        !            18: 
        !            19: </connect>
        !            20: 
        !            21: <data nocheck="yes">
        !            22: HTTP/1.1 200 OK
        !            23: Date: Thu, 09 Nov 2010 14:49:00 GMT
        !            24: Server: test-server/fake
        !            25: Content-Type: text/html
        !            26: Funny-head: yesyes
        !            27: Content-Length: 9
        !            28: Connection: keep-alive
        !            29: 
        !            30: contents
        !            31: </data>
        !            32: </reply>
        !            33: 
        !            34: #
        !            35: # Client-side
        !            36: <client>
        !            37: <server>
        !            38: http
        !            39: http-proxy
        !            40: </server>
        !            41: <name>
        !            42: Suppress proxy CONNECT response headers
        !            43: </name>
        !            44: <command>
        !            45: --proxytunnel --suppress-connect-headers --dump-header - --include --write-out "\nCONNECT CODE: %{http_connect}\nRECEIVED HEADER BYTE TOTAL: %{size_header}\n" --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.1288:%HTTPPORT/we/want/that/page/1288
        !            46: </command>
        !            47: <features>
        !            48: proxy
        !            49: </features>
        !            50: </client>
        !            51: 
        !            52: #
        !            53: # Verify data after the test has been "shot"
        !            54: <verify>
        !            55: <strip>
        !            56: ^User-Agent:.*
        !            57: </strip>
        !            58: <proxy>
        !            59: CONNECT %HOSTIP.1288:%HTTPPORT HTTP/1.1
        !            60: Host: %HOSTIP.1288:%HTTPPORT
        !            61: Proxy-Connection: Keep-Alive
        !            62: 
        !            63: </proxy>
        !            64: <protocol>
        !            65: GET /we/want/that/page/1288 HTTP/1.1
        !            66: Host: %HOSTIP.1288:%HTTPPORT
        !            67: Accept: */*
        !            68: 
        !            69: </protocol>
        !            70: 
        !            71: # This test is structured to test all the expectations of
        !            72: # --suppress-connect-headers, which are:
        !            73: # Must suppress in --include and --dump-header
        !            74: # Must not suppress in --verbose and --trace
        !            75: # Must not suppress in statistics (eg received header byte total)
        !            76: <stdout>
        !            77: HTTP/1.1 200 OK
        !            78: HTTP/1.1 200 OK
        !            79: Date: Thu, 09 Nov 2010 14:49:00 GMT
        !            80: Date: Thu, 09 Nov 2010 14:49:00 GMT
        !            81: Server: test-server/fake
        !            82: Server: test-server/fake
        !            83: Content-Type: text/html
        !            84: Content-Type: text/html
        !            85: Funny-head: yesyes
        !            86: Funny-head: yesyes
        !            87: Content-Length: 9
        !            88: Content-Length: 9
        !            89: Connection: keep-alive
        !            90: Connection: keep-alive
        !            91: 
        !            92: 
        !            93: contents
        !            94: 
        !            95: CONNECT CODE: 200
        !            96: RECEIVED HEADER BYTE TOTAL: 231
        !            97: </stdout>
        !            98: </verify>
        !            99: </testcase>

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