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