16 Date: Thu, 09 Nov 2010 14:49:00 GMT
17 Server: test-server/fake swsclose
18 Content-Type: text/html
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.
28 HTTP/1.1 200 Mighty fine indeed
30 Transfer-Encoding: chunked
35 HTTP/1.1 200 Mighty fine indeed
37 Transfer-Encoding: chunked
40 Date: Thu, 09 Nov 2010 14:49:00 GMT
41 Server: test-server/fake swsclose
42 Content-Type: text/html
58 HTTP over proxy-tunnel ignore TE and CL in CONNECT 2xx responses
61 -v --proxytunnel -x %HOSTIP:%PROXYPORT http://test.1287:%HTTPPORT/we/want/that/page/1287
66 # Verify data after the test has been "shot"
72 CONNECT test.1287:%HTTPPORT HTTP/1.1
73 Host: test.1287:%HTTPPORT
74 Proxy-Connection: Keep-Alive
78 GET /we/want/that/page/1287 HTTP/1.1
79 Host: test.1287:%HTTPPORT
83 <file name="log/stderr1287" mode="text">
84 * Ignoring Content-Length in CONNECT 200 response
85 * Ignoring Transfer-Encoding in CONNECT 200 response
88 s/^.*(?=\* Ignoring (?:Content-Length|Transfer-Encoding) )// or $_ = ''