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<features> 53proxy 54</features> 55</client> 56 57# Verify data after the test has been "shot" 58<verify> 59<proxy> 60CONNECT the.old.moo.1525:%HTTPPORT HTTP/1.1 61Host: the.old.moo.1525:%HTTPPORT 62Proxy-Connection: Keep-Alive 63User-Agent: Http Agent 64 65</proxy> 66<protocol> 67PUT /1525 HTTP/1.1 68Host: the.old.moo.1525:%HTTPPORT 69Accept: */* 70User-Agent: Http Agent 71Content-Length: 13 72Expect: 100-continue 73 74Hello Cloud! 75</protocol> 76</verify> 77</testcase> 78