1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP CONNECT 7HTTP proxy 8proxytunnel 9</keywords> 10</info> 11 12# Server-side 13<reply> 14<servercmd> 15connection-monitor 16</servercmd> 17<connect> 18HTTP/1.1 200 Mighty fine indeed 19Server: the beast that eats naughty clients 20 21</connect> 22 23<data> 24HTTP/1.1 200 OK swsclose 25Date: Thu, 09 Nov 2010 14:49:00 GMT 26Server: test-server/fake 27Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 28ETag: "21025-dc7-39462498" 29 30</data> 31<datacheck> 32HTTP/1.1 200 Mighty fine indeed 33Server: the beast that eats naughty clients 34 35HTTP/1.1 200 OK swsclose 36Date: Thu, 09 Nov 2010 14:49:00 GMT 37Server: test-server/fake 38Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 39ETag: "21025-dc7-39462498" 40 41header length is ........: 245 42header length should be..: 245 43</datacheck> 44</reply> 45 46# Client-side 47<client> 48<server> 49http 50http-proxy 51</server> 52# tool is what to use instead of 'curl' 53<tool> 54lib1509 55</tool> 56 57 <name> 58simple multi http:// through proxytunnel with authentication info 59 </name> 60 <command> 61http://the.old.moo.1509:%HTTPPORT/1509 %HOSTIP:%PROXYPORT 62</command> 63<file name="log/test1509.txt"> 64foo 65 bar 66bar 67 foo 68moo 69</file> 70</client> 71 72# Verify data after the test has been "shot" 73<verify> 74<proxy> 75CONNECT the.old.moo.1509:%HTTPPORT HTTP/1.1 76Host: the.old.moo.1509:%HTTPPORT 77Proxy-Connection: Keep-Alive 78 79</proxy> 80<protocol> 81GET /1509 HTTP/1.1 82Host: the.old.moo.1509:%HTTPPORT 83Accept: */* 84 85[DISCONNECT] 86</protocol> 87</verify> 88</testcase> 89