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 19Content-Type: text/plain 20Location: ./%TESTNUMBER0001 21 22monster 23</data> 24<data1 nocheck="yes"> 25HTTP/1.1 200 OK 26Date: Tue, 09 Nov 2010 14:49:00 GMT 27Content-Length: 15 28Connection: close 29Content-Type: text/plain; charset=us-ascii 30 31bigger monster 32</data1> 33 34</reply> 35 36# 37# Client-side 38<client> 39<server> 40http 41</server> 42<name> 43HTTP POST redirected to GET and --write-out method 44</name> 45<command> 46http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{method}\n" -L -d "twinkle twinkle little star" 47</command> 48</client> 49 50# 51# Verify data after the test has been "shot" 52<verify> 53<protocol> 54POST /%TESTNUMBER HTTP/1.1 55Host: %HOSTIP:%HTTPPORT 56User-Agent: curl/%VERSION 57Accept: */* 58Content-Length: 27 59Content-Type: application/x-www-form-urlencoded 60 61twinkle twinkle little starGET /%TESTNUMBER0001 HTTP/1.1 62Host: %HOSTIP:%HTTPPORT 63User-Agent: curl/%VERSION 64Accept: */* 65 66</protocol> 67 68<stdout> 69HTTP/1.1 302 OK swsbounce swsclose 70Date: Tue, 09 Nov 2010 14:49:00 GMT 71Content-Length: 8 72Connection: close 73Content-Type: text/plain 74Location: ./%TESTNUMBER0001 75 76HTTP/1.1 200 OK 77Date: Tue, 09 Nov 2010 14:49:00 GMT 78Content-Length: 15 79Connection: close 80Content-Type: text/plain; charset=us-ascii 81 82bigger monster 83GET 84</stdout> 85 86</verify> 87</testcase> 88