xref: /curl/tests/data/test101 (revision cd4aee15)
1<testcase>
2<info>
3<keywords>
4FTP
5PORT
6LIST
7</keywords>
8</info>
9# Server-side
10<reply>
11<data mode="text">
12total 20
13drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
14drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
15drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
16-r--r--r--   1 0        1             35 Jul 16  1996 README
17lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
18dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
19drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
20dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
21drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
22dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
23</data>
24</reply>
25
26# Client-side
27<client>
28<server>
29ftp
30</server>
31<name>
32FTP dir list, PORT with specified IP
33</name>
34<command>
35ftp://%HOSTIP:%FTPPORT/ -P %CLIENTIP
36</command>
37</client>
38
39# Verify data after the test has been "shot"
40<verify>
41<strip>
42QUIT
43</strip>
44# Strip all valid kinds of PORT and EPRT that curl can send
45<strip>
46^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
47^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
48</strip>
49<protocol>
50USER anonymous
51PASS ftp@example.com
52PWD
53PORT 127,0,0,1,243,212
54TYPE A
55LIST
56QUIT
57</protocol>
58</verify>
59</testcase>
60