~ubuntu-branches/ubuntu/quantal/curl/quantal-proposed

« back to all changes in this revision

Viewing changes to tests/data/test1391

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-08-20 13:54:01 UTC
  • mfrom: (3.4.30 sid)
  • Revision ID: package-import@ubuntu.com-20120820135401-5845kg6puoh2jcnh
Tags: 7.27.0-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
FTP
 
5
RETR
 
6
</keywords>
 
7
</info>
 
8
 
 
9
# Server-side
 
10
<reply>
 
11
# file1391 contents...
 
12
<data nocheck="yes">
 
13
HTTP/1.1 200 OK
 
14
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
15
Server: test-server/fake
 
16
Content-Length: 6
 
17
Connection: close
 
18
Content-Type: text/html
 
19
Content-Disposition: filename=name1391; charset=funny; option=strange
 
20
 
 
21
MOOOO
 
22
</data>
 
23
</reply>
 
24
 
 
25
# Client-side
 
26
<client>
 
27
<server>
 
28
ftp
 
29
</server>
 
30
<name>
 
31
FTP DL, file with C-D inside, using -o fname -i -D file
 
32
</name>
 
33
<command option="no-output,no-include">
 
34
ftp://%HOSTIP:%FTPPORT/path/file1391 -o log/download1391 -i -D log/heads1391
 
35
</command>
 
36
<postcheck>
 
37
perl %SRCDIR/libtest/notexists.pl log/file1391 log/name1391
 
38
</postcheck>
 
39
</client>
 
40
 
 
41
# Verify data after the test has been "shot"
 
42
<verify>
 
43
<protocol>
 
44
USER anonymous
 
45
PASS ftp@example.com
 
46
PWD
 
47
CWD path
 
48
EPSV
 
49
TYPE I
 
50
SIZE file1391
 
51
RETR file1391
 
52
QUIT
 
53
</protocol>
 
54
 
 
55
<file1 name="log/download1391">
 
56
HTTP/1.1 200 OK
 
57
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
58
Server: test-server/fake
 
59
Content-Length: 6
 
60
Connection: close
 
61
Content-Type: text/html
 
62
Content-Disposition: filename=name1391; charset=funny; option=strange
 
63
 
 
64
MOOOO
 
65
</file1>
 
66
 
 
67
<file2 name="log/heads1391">
 
68
220-        _   _ ____  _     
 
69
220-    ___| | | |  _ \| |    
 
70
220-   / __| | | | |_) | |    
 
71
220-  | (__| |_| |  _ <| |___ 
 
72
220    \___|\___/|_| \_\_____|
 
73
331 We are happy you popped in!
 
74
230 Welcome you silly person
 
75
257 "/" is current directory
 
76
250 CWD command successful.
 
77
229 Entering Passive Mode (stripped)
 
78
200 I modify TYPE as you wanted
 
79
213 214
 
80
150 Binary data connection for 1391 () (214 bytes).
 
81
226 File transfer complete
 
82
221 bye bye baby
 
83
</file2>
 
84
<stripfile2>
 
85
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
 
86
</stripfile2>
 
87
 
 
88
<file3 name="log/stdout1391">
 
89
</file3>
 
90
 
 
91
</verify>
 
92
</testcase>