• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2#
3# For this test the server rejects the EPRT command,
4# code in lib591 makes use of curl_multi_timeout()
5# and server does not establish data connection.
6#
7<info>
8<keywords>
9FTP
10PORT
11STOR
12multi
13EPRT refused
14NODATACONN425
15</keywords>
16</info>
17
18# Server-side
19<reply>
20<data>
21</data>
22<servercmd>
23NODATACONN425
24REPLY EPRT 500 we don't like EPRT now
25</servercmd>
26</reply>
27
28# Client-side
29<client>
30<server>
31ftp
32</server>
33<tool>
34lib591
35</tool>
36 <name>
37FTP multi PORT and 425 on upload
38 </name>
39 <command>
40ftp://%HOSTIP:%FTPPORT/path/591 %FTPTIME2 log/upload591
41</command>
42<file name="log/upload591">
43Moooooooooooo for 591
44 upload this
45</file>
46</client>
47
48# Verify data after the test has been "shot"
49<verify>
50# Strip off parts of the PORT and EPRT commands that might differ
51<strippart>
52s/^PORT (.*)/PORT/
53s/^EPRT \|1\|(.*)/EPRT \|1\|/
54</strippart>
55<protocol>
56USER anonymous
57PASS ftp@example.com
58PWD
59CWD path
60EPRT |1|
61PORT
62TYPE I
63STOR 591
64QUIT
65</protocol>
66# CURLE_FTP_ACCEPT_FAILED = 10
67<errorcode>
6810
69</errorcode>
70<upload>
71</upload>
72</verify>
73</testcase>
74