16 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
17 Server: test-server/fake swsclose
\r
18 Content-Type: text/html
\r
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
\r
30 Transfer-Encoding: chunked
\r
35 HTTP/1.1 200 Mighty fine indeed
\r
37 Transfer-Encoding: chunked
\r
40 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
41 Server: test-server/fake swsclose
\r
42 Content-Type: text/html
\r
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
\r
73 Host: test.1287:%HTTPPORT
\r
74 Proxy-Connection: Keep-Alive
\r
78 GET /we/want/that/page/1287 HTTP/1.1
\r
79 Host: test.1287:%HTTPPORT
\r
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 $_ = ''