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