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