test1066 (1245B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 9 # Server-side 10 <reply> 11 <data nocheck="yes"> 12 HTTP/1.1 200 OK 13 Server: thebest/1.0 14 Content-Type: text/plain 15 Content-Length: 6 16 17 first 18 </data> 19 <data1 nocheck="yes"> 20 HTTP/1.1 200 OK 21 Server: thebest/1.0 22 Content-Type: text/plain 23 Content-Length: 7 24 25 second 26 </data1> 27 </reply> 28 29 # Client-side 30 <client> 31 <server> 32 http 33 </server> 34 <name> 35 HTTP --dump-header - with two URLs 36 </name> 37 <command> 38 http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER0001 --dump-header - 39 </command> 40 </client> 41 42 # Verify data after the test has been "shot" 43 <verify> 44 <protocol> 45 GET /want/%TESTNUMBER HTTP/1.1 46 Host: %HOSTIP:%HTTPPORT 47 User-Agent: curl/%VERSION 48 Accept: */* 49 50 GET /want/%TESTNUMBER0001 HTTP/1.1 51 Host: %HOSTIP:%HTTPPORT 52 User-Agent: curl/%VERSION 53 Accept: */* 54 55 </protocol> 56 <stdout> 57 HTTP/1.1 200 OK 58 HTTP/1.1 200 OK 59 Server: thebest/1.0 60 Server: thebest/1.0 61 Content-Type: text/plain 62 Content-Type: text/plain 63 Content-Length: 6 64 Content-Length: 6 65 66 67 first 68 HTTP/1.1 200 OK 69 HTTP/1.1 200 OK 70 Server: thebest/1.0 71 Server: thebest/1.0 72 Content-Type: text/plain 73 Content-Type: text/plain 74 Content-Length: 7 75 Content-Length: 7 76 77 78 second 79 </stdout> 80 </verify> 81 </testcase>