test749 (902B)
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 HTTP/1.1 400 Bad request 18 Connection: close 19 20 </connect> 21 22 <datacheck crlf="yes"> 23 HTTP/1.1 400 Bad request 24 Connection: close 25 26 </datacheck> 27 </reply> 28 29 # Client-side 30 <client> 31 <server> 32 http 33 </server> 34 <features> 35 proxy 36 </features> 37 <name> 38 HTTP CONNECT with proxy returning 400 and closing 39 </name> 40 <command> 41 http://test.example --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -sS 42 </command> 43 </client> 44 45 # Verify data after the test has been "shot" 46 <verify> 47 <protocol crlf="yes"> 48 CONNECT test.example:80 HTTP/1.1 49 Host: test.example:80 50 User-Agent: curl/%VERSION 51 Proxy-Connection: Keep-Alive 52 53 </protocol> 54 <errorcode> 55 56 56 </errorcode> 57 <stderr mode="text"> 58 curl: (56) CONNECT tunnel failed, response 400 59 </stderr> 60 </verify> 61 </testcase>