Annotation of embedaddon/curl/tests/data/test1287, revision 1.1.1.1

1.1       misho       1: <testcase>
                      2: <info>
                      3: <keywords>
                      4: HTTP
                      5: HTTP GET
                      6: HTTP CONNECT
                      7: proxytunnel
                      8: verbose logs
                      9: </keywords>
                     10: </info>
                     11: #
                     12: # Server-side
                     13: <reply>
                     14: <data>
                     15: HTTP/1.1 200 OK
                     16: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     17: Server: test-server/fake swsclose
                     18: Content-Type: text/html
                     19: Funny-head: yesyes
                     20: Content-Length: 9
                     21: 
                     22: contents
                     23: </data>
                     24: 
                     25: # The purpose of this test is to make sure curl ignores headers
                     26: # Content-Length and Transfer-Encoding in a successful CONNECT 2xx reply.
                     27: <connect>
                     28: HTTP/1.1 200 Mighty fine indeed
                     29: Content-Length: 123
                     30: Transfer-Encoding: chunked
                     31: 
                     32: </connect>
                     33: 
                     34: <datacheck>
                     35: HTTP/1.1 200 Mighty fine indeed
                     36: Content-Length: 123
                     37: Transfer-Encoding: chunked
                     38: 
                     39: HTTP/1.1 200 OK
                     40: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     41: Server: test-server/fake swsclose
                     42: Content-Type: text/html
                     43: Funny-head: yesyes
                     44: Content-Length: 9
                     45: 
                     46: contents
                     47: </datacheck>
                     48: </reply>
                     49: 
                     50: #
                     51: # Client-side
                     52: <client>
                     53: <server>
                     54: http
                     55: http-proxy
                     56: </server>
                     57: <name>
                     58: HTTP over proxy-tunnel ignore TE and CL in CONNECT 2xx responses
                     59: </name>
                     60: <command>
                     61: -v --proxytunnel -x %HOSTIP:%PROXYPORT http://test.1287:%HTTPPORT/we/want/that/page/1287
                     62: </command>
                     63: <features>
                     64: proxy
                     65: </features>
                     66: </client>
                     67: 
                     68: #
                     69: # Verify data after the test has been "shot"
                     70: <verify>
                     71: <strip>
                     72: ^User-Agent:.*
                     73: </strip>
                     74: <proxy>
                     75: CONNECT test.1287:%HTTPPORT HTTP/1.1
                     76: Host: test.1287:%HTTPPORT
                     77: Proxy-Connection: Keep-Alive
                     78: 
                     79: </proxy>
                     80: <protocol>
                     81: GET /we/want/that/page/1287 HTTP/1.1
                     82: Host: test.1287:%HTTPPORT
                     83: Accept: */*
                     84: 
                     85: </protocol>
                     86: <file name="log/stderr1287" mode="text">
                     87: * Ignoring Content-Length in CONNECT 200 response
                     88: * Ignoring Transfer-Encoding in CONNECT 200 response
                     89: </file>
                     90: <stripfile>
                     91: s/^.*(?=\* Ignoring (?:Content-Length|Transfer-Encoding) )// or $_ = ''
                     92: </stripfile>
                     93: </verify>
                     94: </testcase>

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