1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP CONNECT 7HTTP proxy 8proxytunnel 9CURLOPT_PROXYHEADER 10</keywords> 11</info> 12 13# Server-side 14<reply> 15<connect> 16HTTP/1.1 200 OK 17 18</connect> 19<data> 20HTTP/1.1 200 OK swsclose 21Date: Thu, 09 Nov 2010 14:49:00 GMT 22Server: test-server/fake 23Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 24ETag: "21025-dc7-39462498" 25</data> 26<datacheck> 27HTTP/1.1 200 OK 28 29HTTP/1.1 200 OK swsclose 30Date: Thu, 09 Nov 2010 14:49:00 GMT 31Server: test-server/fake 32Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 33ETag: "21025-dc7-39462498" 34</datacheck> 35 36</reply> 37# Client-side 38<client> 39<server> 40http 41http-proxy 42</server> 43<tool> 44lib1525 45</tool> 46 <name> 47CURLOPT_PROXYHEADER is ignored CURLHEADER_UNIFIED 48 </name> 49 <command> 50 http://the.old.moo.1525:%HTTPPORT/1525 %HOSTIP:%PROXYPORT 51</command> 52</client> 53 54# Verify data after the test has been "shot" 55<verify> 56<proxy> 57CONNECT the.old.moo.1525:%HTTPPORT HTTP/1.1 58Host: the.old.moo.1525:%HTTPPORT 59Proxy-Connection: Keep-Alive 60User-Agent: Http Agent 61 62</proxy> 63<protocol> 64PUT /1525 HTTP/1.1 65Host: the.old.moo.1525:%HTTPPORT 66Accept: */* 67User-Agent: Http Agent 68Content-Length: 13 69Expect: 100-continue 70 71Hello Cloud! 72</protocol> 73</verify> 74</testcase> 75