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=/15240002 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=/15240002 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/1524 -L -T log/upload1524.txt 49</command> 50<file name="log/upload1524.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/1524 HTTP/1.1 60Host: %HOSTIP:%HTTPPORT 61User-Agent: curl/%VERSION 62Accept: */* 63Content-Length: 4 64Expect: 100-continue 65 66moo 67GET /blah/moo.html&testcase=/15240002 HTTP/1.1 68Host: %HOSTIP:%HTTPPORT 69User-Agent: curl/%VERSION 70Accept: */* 71 72 73</protocol> 74</verify> 75</testcase> 76