1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP PUT 6followlocation 7FTP 8EPSV 9STOR 10</keywords> 11</info> 12 13# 14# Server-side 15<reply> 16<data> 17HTTP/1.1 307 OK 18Date: Tue, 09 Nov 2010 14:49:00 GMT 19Server: test-server/fake swsclose 20Content-Type: text/html 21Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER 22Content-Length: 0 23Connection: close 24 25</data> 26</reply> 27 28# 29# Client-side 30<client> 31<server> 32http 33ftp 34</server> 35<name> 36HTTP PUT Location: redirect to FTP URL 37</name> 38<command> 39http://%HOSTIP:%HTTPPORT/%TESTNUMBER -L -T %LOGDIR/test%TESTNUMBER.txt 40</command> 41<file name="%LOGDIR/test%TESTNUMBER.txt"> 42Weird 43 file 44 to 45 upload 46for 47 testing 48the 49 PUT 50 feature 51</file> 52</client> 53 54# 55# Verify data after the test has been "shot" 56<verify> 57<protocol> 58PUT /%TESTNUMBER HTTP/1.1 59Host: %HOSTIP:%HTTPPORT 60User-Agent: curl/%VERSION 61Accept: */* 62Content-Length: 78 63 64Weird 65 file 66 to 67 upload 68for 69 testing 70the 71 PUT 72 feature 73USER anonymous 74PASS ftp@example.com 75PWD 76EPSV 77TYPE I 78STOR %TESTNUMBER 79QUIT 80</protocol> 81<upload> 82Weird 83 file 84 to 85 upload 86for 87 testing 88the 89 PUT 90 feature 91</upload> 92</verify> 93</testcase> 94