1<testcase> 2<info> 3<keywords> 4HTTP 5URL API 6CURLOPT_CURLU 7CURLOPT_FOLLOWLOCATION 8</keywords> 9</info> 10 11# Server-side 12<reply> 13<data> 14HTTP/1.1 302 OK 15Content-Length: 6 16Location: /%TESTNUMBER0002 17 18-foo- 19</data> 20<data2> 21HTTP/1.1 200 OK 22Content-Length: 11 23 24redirected 25</data2> 26<datacheck> 27redirected 28redirected 29</datacheck> 30</reply> 31 32# Client-side 33<client> 34<server> 35http 36</server> 37# tool is what to use instead of 'curl' 38<tool> 39lib%TESTNUMBER 40</tool> 41 42 <name> 43re-run redirected transfer without setting CURLU URL again 44 </name> 45 <command> 46http://%HOSTIP:%HTTPPORT/%TESTNUMBER 47</command> 48</client> 49 50<verify> 51<protocol> 52GET /%TESTNUMBER HTTP/1.1 53Host: %HOSTIP:%HTTPPORT 54Accept: */* 55 56GET /%TESTNUMBER0002 HTTP/1.1 57Host: %HOSTIP:%HTTPPORT 58Accept: */* 59 60GET /%TESTNUMBER HTTP/1.1 61Host: %HOSTIP:%HTTPPORT 62Accept: */* 63 64GET /%TESTNUMBER0002 HTTP/1.1 65Host: %HOSTIP:%HTTPPORT 66Accept: */* 67 68</protocol> 69</verify> 70</testcase> 71