Git init
[external/curl.git] / tests / data / test408
1 <testcase>
2 <info>
3 <keywords>
4 FTPS
5 PORT
6 STOR
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11 <data>
12 </data>
13 </reply>
14
15 # Client-side
16 <client>
17 <features>
18 SSL
19 </features>
20 <server>
21 ftps
22 </server>
23  <name>
24 FTPS PORT upload with CWD
25  </name>
26  <command>
27 -k --ftp-ssl-control ftps://%HOSTIP:%FTPSPORT/CWD/STOR/RETR/408 -T log/upload408 -P -
28 </command>
29 <file name="log/upload408">
30 Moooooooooooo
31  upload this
32 </file>
33 </client>
34
35 # Verify data after the test has been "shot"
36 <verify>
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>
43 USER anonymous\r
44 PASS ftp@example.com\r
45 PBSZ 0\r
46 PROT C\r
47 PWD\r
48 CWD CWD\r
49 CWD STOR\r
50 CWD RETR\r
51 PORT 127,0,0,1,5,109\r
52 TYPE I\r
53 STOR 408\r
54 QUIT\r
55 </protocol>
56 <upload>
57 Moooooooooooo
58  upload this
59 </upload>
60 </verify>
61 </testcase>