1<testcase> 2<info> 3<keywords> 4FTP 5FTPS 6PORT 7STOR 8</keywords> 9</info> 10# Server-side 11<reply> 12<data> 13</data> 14</reply> 15 16# Client-side 17<client> 18<features> 19SSL 20</features> 21<server> 22ftps 23</server> 24<name> 25FTPS PORT upload with CWD 26</name> 27<command> 28-k --ftp-ssl-control ftps://%HOSTIP:%FTPSPORT/CWD/STOR/RETR/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -P - 29</command> 30<file name="%LOGDIR/upload%TESTNUMBER"> 31Moooooooooooo 32 upload this 33</file> 34</client> 35 36# Verify data after the test has been "shot" 37<verify> 38# Strip all valid kinds of PORT and EPRT that curl can send 39<strip> 40^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} 41^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| 42</strip> 43<protocol> 44USER anonymous 45PASS ftp@example.com 46PBSZ 0 47PROT C 48PWD 49CWD CWD 50CWD STOR 51CWD RETR 52PORT 127,0,0,1,5,109 53TYPE I 54STOR %TESTNUMBER 55QUIT 56</protocol> 57<upload> 58Moooooooooooo 59 upload this 60</upload> 61</verify> 62</testcase> 63