xref: /curl/tests/data/test1390 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5RETR
6-J
7</keywords>
8</info>
9
10# Server-side
11<reply>
12# file%TESTNUMBER contents...
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 6
18Connection: close
19Content-Type: text/html
20Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
21
22MOOOO
23</data>
24</reply>
25
26# Client-side
27<client>
28<server>
29ftp
30</server>
31<name>
32FTP DL, file with C-D inside, using -o fname -J -D stdout
33</name>
34<command option="no-output,no-include">
35ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -o %LOGDIR/download%TESTNUMBER -J -D -
36</command>
37<postcheck>
38perl %SRCDIR/libtest/notexists.pl %LOGDIR/file%TESTNUMBER %LOGDIR/name%TESTNUMBER
39</postcheck>
40</client>
41
42# Verify data after the test has been "shot"
43<verify>
44<strip>
45QUIT
46</strip>
47<protocol>
48USER anonymous
49PASS ftp@example.com
50PWD
51CWD path
52EPSV
53TYPE I
54SIZE file%TESTNUMBER
55RETR file%TESTNUMBER
56QUIT
57</protocol>
58
59<file1 name="%LOGDIR/download%TESTNUMBER">
60HTTP/1.1 200 OK
61Date: Tue, 09 Nov 2010 14:49:00 GMT
62Server: test-server/fake
63Content-Length: 6
64Connection: close
65Content-Type: text/html
66Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
67
68MOOOO
69</file1>
70
71<file2 name="%LOGDIR/stdout%TESTNUMBER">
72220-        _   _ ____  _
73220-    ___| | | |  _ \| |
74220-   / __| | | | |_) | |
75220-  | (__| |_| |  _ {| |___
76220    \___|\___/|_| \_\_____|
77331 We are happy you popped in!
78230 Welcome you silly person
79257 "/" is current directory
80250 CWD command successful.
81229 Entering Passive Mode (stripped)
82200 I modify TYPE as you wanted
83213 222
84150 Binary data connection for %TESTNUMBER () (222 bytes).
85226 File transfer complete
86</file2>
87<stripfile2>
88s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
89</stripfile2>
90
91</verify>
92</testcase>
93