xref: /curl/tests/data/test594 (revision cd4aee15)
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
14NODATACONN
15timeout
16FAILURE
17</keywords>
18</info>
19
20# Server-side
21<reply>
22<data>
23</data>
24<servercmd>
25NODATACONN
26REPLY EPRT 500 we don't like EPRT now
27</servercmd>
28</reply>
29
30# Client-side
31<client>
32<server>
33ftp
34</server>
35<tool>
36lib591
37</tool>
38<name>
39FTP multi PORT upload, no data conn and no positive prelim. reply
40</name>
41<command>
42ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %FTPTIME2 %LOGDIR/upload%TESTNUMBER
43</command>
44<file name="%LOGDIR/upload%TESTNUMBER">
45Moooooooooooo for %TESTNUMBER
46 upload this
47</file>
48</client>
49
50# Verify data after the test has been "shot"
51<verify>
52<strip>
53QUIT
54</strip>
55# Strip off parts of the PORT and EPRT commands that might differ
56<strippart>
57s/^PORT (.*)/PORT/
58s/^EPRT \|1\|(.*)/EPRT \|1\|/
59</strippart>
60<protocol>
61USER anonymous
62PASS ftp@example.com
63PWD
64CWD path
65EPRT |1|
66PORT
67TYPE I
68STOR %TESTNUMBER
69QUIT
70</protocol>
71<errorcode>
7228
73</errorcode>
74<upload>
75</upload>
76</verify>
77</testcase>
78