1<testcase> 2# http://greenbytes.de/tech/webdav/draft-reschke-http-status-308-latest.html 3<info> 4<keywords> 5HTTP 6HTTP GET 7308 8followlocation 9</keywords> 10</info> 11# 12# Server-side 13<reply> 14<data> 15HTTP/1.1 308 OK swsclose 16Location: 13250002 17Date: Thu, 09 Nov 2010 14:49:00 GMT 18Connection: close 19 20</data> 21<data2> 22HTTP/1.1 200 OK swsclose 23Location: this should be ignored 24Date: Thu, 09 Nov 2010 14:49:00 GMT 25Connection: close 26 27body 28</data2> 29<datacheck> 30HTTP/1.1 308 OK swsclose 31Location: 13250002 32Date: Thu, 09 Nov 2010 14:49:00 GMT 33Connection: close 34 35HTTP/1.1 200 OK swsclose 36Location: this should be ignored 37Date: Thu, 09 Nov 2010 14:49:00 GMT 38Connection: close 39 40body 41</datacheck> 42</reply> 43 44# 45# Client-side 46<client> 47<server> 48http 49</server> 50 <name> 51HTTP 308-redirect with POST 52 </name> 53 <command> 54http://%HOSTIP:%HTTPPORT/we/1325 -L -d "moo" 55</command> 56</client> 57 58# 59# Verify data after the test has been "shot" 60<verify> 61<strip> 62^User-Agent:.* 63</strip> 64<protocol nonewline="yes"> 65POST /we/1325 HTTP/1.1 66Host: %HOSTIP:%HTTPPORT 67Accept: */* 68Content-Length: 3 69Content-Type: application/x-www-form-urlencoded 70 71mooPOST /we/13250002 HTTP/1.1 72Host: %HOSTIP:%HTTPPORT 73Accept: */* 74Content-Length: 3 75Content-Type: application/x-www-form-urlencoded 76 77moo 78</protocol> 79</verify> 80</testcase> 81