test750 (821B)
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 # Server-side 13 <reply> 14 15 # this is returned first since we get no proxy-auth 16 <connect> 17 <html> 18 <h1>400 Bad request</h1> 19 swsclose 20 </html> 21 </connect> 22 23 </reply> 24 25 # Client-side 26 <client> 27 <server> 28 http 29 </server> 30 <features> 31 proxy 32 </features> 33 <name> 34 HTTP CONNECT with proxy returning just HTML and closing 35 </name> 36 <command> 37 http://test.example --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -sS 38 </command> 39 </client> 40 41 # Verify data after the test has been "shot" 42 <verify> 43 <protocol crlf="yes"> 44 CONNECT test.example:80 HTTP/1.1 45 Host: test.example:80 46 User-Agent: curl/%VERSION 47 Proxy-Connection: Keep-Alive 48 49 </protocol> 50 <errorcode> 51 43 52 </errorcode> 53 <stderr mode="text"> 54 curl: (43) Invalid response header 55 </stderr> 56 </verify> 57 </testcase>