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