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