test1904 (1207B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP CONNECT 7 HTTP proxy 8 proxytunnel 9 </keywords> 10 </info> 11 12 # 13 # Server-side 14 <reply> 15 <data> 16 HTTP/1.1 200 OK 17 Date: Tue, 09 Nov 2010 14:49:00 GMT 18 Server: test-server/fake swsclose 19 Content-Type: text/html 20 Funny-head: yesyes 21 Content-Length: 9 22 23 contents 24 </data> 25 <connect> 26 HTTP/1.1 204 Sure go ahead 27 28 </connect> 29 <datacheck> 30 HTTP/1.1 204 Sure go ahead 31 32 HTTP/1.1 200 OK 33 Date: Tue, 09 Nov 2010 14:49:00 GMT 34 Server: test-server/fake swsclose 35 Content-Type: text/html 36 Funny-head: yesyes 37 Content-Length: 9 38 39 contents 40 </datacheck> 41 </reply> 42 43 # 44 # Client-side 45 <client> 46 <server> 47 http 48 http-proxy 49 </server> 50 <name> 51 HTTP CONNECT with 204 response 52 </name> 53 <command> 54 http://test.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER -p --proxy %HOSTIP:%PROXYPORT 55 </command> 56 <features> 57 proxy 58 </features> 59 </client> 60 61 # 62 # Verify data after the test has been "shot" 63 <verify> 64 <proxy> 65 CONNECT test.%TESTNUMBER:%HTTPPORT HTTP/1.1 66 Host: test.%TESTNUMBER:%HTTPPORT 67 User-Agent: curl/%VERSION 68 Proxy-Connection: Keep-Alive 69 70 </proxy> 71 <protocol> 72 GET /we/want/that/page/%TESTNUMBER HTTP/1.1 73 Host: test.%TESTNUMBER:%HTTPPORT 74 User-Agent: curl/%VERSION 75 Accept: */* 76 77 </protocol> 78 </verify> 79 </testcase>