test1089 (1524B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 followlocation 7 --write-out 8 </keywords> 9 </info> 10 11 # 12 # Server-side 13 <reply> 14 <data nocheck="yes"> 15 HTTP/1.1 302 OK swsbounce swsclose 16 Date: Tue, 09 Nov 2010 14:49:00 GMT 17 Content-Length: 8 18 Connection: close 19 Content-Type: text/plain 20 Location: ./%TESTNUMBER0001 21 22 monster 23 </data> 24 <data1 nocheck="yes"> 25 HTTP/1.1 200 OK 26 Date: Tue, 09 Nov 2010 14:49:00 GMT 27 Content-Length: 15 28 Connection: close 29 Content-Type: text/plain; charset=us-ascii 30 31 bigger monster 32 </data1> 33 34 </reply> 35 36 # 37 # Client-side 38 <client> 39 <server> 40 http 41 </server> 42 <name> 43 HTTP GET --write-out with redirected fetch 44 </name> 45 <command> 46 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L 47 </command> 48 </client> 49 50 # 51 # Verify data after the test has been "shot" 52 <verify> 53 <protocol> 54 GET /%TESTNUMBER HTTP/1.1 55 Host: %HOSTIP:%HTTPPORT 56 User-Agent: curl/%VERSION 57 Accept: */* 58 59 GET /%TESTNUMBER0001 HTTP/1.1 60 Host: %HOSTIP:%HTTPPORT 61 User-Agent: curl/%VERSION 62 Accept: */* 63 64 </protocol> 65 66 <stdout> 67 HTTP/1.1 302 OK swsbounce swsclose 68 Date: Tue, 09 Nov 2010 14:49:00 GMT 69 Content-Length: 8 70 Connection: close 71 Content-Type: text/plain 72 Location: ./%TESTNUMBER0001 73 74 HTTP/1.1 200 OK 75 Date: Tue, 09 Nov 2010 14:49:00 GMT 76 Content-Length: 15 77 Connection: close 78 Content-Type: text/plain; charset=us-ascii 79 80 bigger monster 81 2 82 1 83 15 84 http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 85 text/plain; charset=us-ascii 86 200 87 </stdout> 88 89 </verify> 90 </testcase>