1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP CONNECT 6HTTP proxy 7proxytunnel 8</keywords> 9</info> 10 11# Server-side 12<reply> 13 14# this is returned first since we get no proxy-auth 15<data nocheck="yes"> 16HTTP/1.1 405 Method Not Allowed swsclose 17 18And you should ignore this data. 19</data> 20 21</reply> 22 23# Client-side 24<client> 25<server> 26http 27</server> 28 <name> 29HTTP proxy CONNECT with custom User-Agent header 30 </name> 31 <command> 32http://test.remote.example.com:287/path/287 -H "User-Agent: looser/2007" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel 33</command> 34</client> 35 36# Verify data after the test has been "shot" 37<verify> 38<protocol> 39CONNECT test.remote.example.com:287 HTTP/1.1 40Host: test.remote.example.com:287 41Proxy-Connection: Keep-Alive 42User-Agent: looser/2007 43 44</protocol> 45# CURLE_RECV_ERROR 46<errorcode> 4756 48</errorcode> 49<stdout> 50HTTP/1.1 405 Method Not Allowed swsclose 51 52</stdout> 53</verify> 54</testcase> 55