Git init
[external/curl.git] / tests / data / test531
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 PORT
6 STOR
7 multi
8 </keywords>
9 </info>
10
11 # Server-side
12 <reply>
13 <data>
14 </data>
15 <servercmd>
16 REPLY STOR 425 Permission Denied. File Exists.
17 </servercmd>
18 </reply>
19
20 # Client-side
21 <client>
22 <server>
23 ftp
24 </server>
25 <tool>
26 lib525
27 </tool>
28  <name>
29 FTP PORT upload using multi interface and get 425 response
30  </name>
31  <command>
32 ftp://%HOSTIP:%FTPPORT/path/531 log/upload531
33 </command>
34 <file name="log/upload531">
35 Moooooooooooo
36 don't upload this
37 </file>
38 </client>
39
40 # Verify data after the test has been "shot"
41 <verify>
42 # Strip all valid kinds of PORT and EPRT that curl can send
43 <strip>
44 ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
45 ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
46 </strip>
47 <protocol>
48 USER anonymous\r
49 PASS ftp@example.com\r
50 PWD\r
51 CWD path\r
52 PORT 127,0,0,1,5,109\r
53 TYPE I\r
54 STOR 531\r
55 QUIT\r
56 </protocol>
57
58 </verify>
59 </testcase>