1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP CONNECT 7HTTP proxy 8proxytunnel 9followlocation 10--write-out 11</keywords> 12</info> 13 14# Server-side 15<reply> 16 17# this is returned first since we get no proxy-auth 18<connect nocheck="yes"> 19HTTP/1.1 405 Method Not Allowed swsclose 20 21And you should ignore this data. 22</connect> 23 24</reply> 25 26# Client-side 27<client> 28<server> 29http 30</server> 31 <name> 32HTTP proxy CONNECT to proxy returning 405 33 </name> 34 <command> 35http://test.remote.example.com.217:%HTTPPORT/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n" 36</command> 37</client> 38 39# Verify data after the test has been "shot" 40<verify> 41<strip> 42^User-Agent: curl/.* 43</strip> 44<protocol> 45CONNECT test.remote.example.com.217:%HTTPPORT HTTP/1.1 46Host: test.remote.example.com.217:%HTTPPORT 47Proxy-Connection: Keep-Alive 48 49</protocol> 50# CURLE_RECV_ERROR 51<errorcode> 5256 53</errorcode> 54<stdout> 55HTTP/1.1 405 Method Not Allowed swsclose 56 57000 405 58</stdout> 59</verify> 60</testcase> 61