aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1444
blob: 7eec21b999d74726ad2e5bd7d9d96caef6549678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<testcase>
<info>
<keywords>
FTP
EPSV
RETR
--remote-time
</keywords>
</info>
# Server-side
<reply>
<data>
file data
</data>
<mdtm>
213 20090213233130
</mdtm>
</reply>

# Client-side
<client>
<server>
ftp
</server>
 <name>
FTP with --remote-time
 </name>
 <command>
ftp://%HOSTIP:%FTPPORT/1444 --remote-time
</command>
# Verify the mtime of the file. The mtime is specifically chosen to be an even
# number so that it can be represented exactly on a FAT filesystem.
<postcheck>
perl -e 'exit((stat("log/curl1444.out"))[9] != 1234567890)'
</postcheck>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
MDTM 1444
EPSV
TYPE I
SIZE 1444
RETR 1444
QUIT
</protocol>
</verify>
</testcase>