1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP PUT 6followlocation 7</keywords> 8</info> 9# 10# Server-side 11<reply> 12<data> 13HTTP/1.1 303 OK swsclose 14Location: moo.html&testcase=/%TESTNUMBER0002 15Connection: close 16 17</data> 18<data2> 19HTTP/1.1 200 OK swsclose 20Location: this should be ignored 21Connection: close 22 23body 24</data2> 25<datacheck> 26HTTP/1.1 303 OK swsclose 27Location: moo.html&testcase=/%TESTNUMBER0002 28Connection: close 29 30HTTP/1.1 200 OK swsclose 31Location: this should be ignored 32Connection: close 33 34body 35</datacheck> 36</reply> 37 38# 39# Client-side 40<client> 41<server> 42http 43</server> 44<name> 45HTTP PUT with 303 redirect 46</name> 47<command> 48http://%HOSTIP:%HTTPPORT/blah/%TESTNUMBER -L -T %LOGDIR/upload%TESTNUMBER.txt 49</command> 50<file name="%LOGDIR/upload%TESTNUMBER.txt"> 51moo 52</file> 53</client> 54 55# 56# Verify data after the test has been "shot" 57<verify> 58<protocol nonewline="yes"> 59PUT /blah/%TESTNUMBER HTTP/1.1 60Host: %HOSTIP:%HTTPPORT 61User-Agent: curl/%VERSION 62Accept: */* 63Content-Length: 4 64 65moo 66GET /blah/moo.html&testcase=/%TESTNUMBER0002 HTTP/1.1 67Host: %HOSTIP:%HTTPPORT 68User-Agent: curl/%VERSION 69Accept: */* 70 71 72</protocol> 73</verify> 74</testcase> 75