xref: /curl/tests/data/test108 (revision cd4aee15)
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/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -P -
25</command>
26<file name="%LOGDIR/upload%TESTNUMBER">
27Moooooooooooo
28 upload this
29</file>
30</client>
31
32# Verify data after the test has been "shot"
33<verify>
34<strip>
35QUIT
36</strip>
37# Strip all valid kinds of PORT and EPRT that curl can send
38<strip>
39^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
40^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
41</strip>
42<protocol>
43USER anonymous
44PASS ftp@example.com
45PWD
46CWD CWD
47CWD STOR
48CWD RETR
49PORT 127,0,0,1,5,109
50TYPE I
51STOR %TESTNUMBER
52QUIT
53</protocol>
54<upload>
55Moooooooooooo
56 upload this
57</upload>
58</verify>
59</testcase>
60