1<testcase> 2<info> 3<keywords> 4FTP 5SLOWDOWN 6</keywords> 7</info> 8 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<servercmd> 25SLOWDOWN 26</servercmd> 27</reply> 28 29# Client-side 30<client> 31<server> 32ftp 33</server> 34<name> 35FTP dir list, PORT with specified IP and slow response 36</name> 37<command> 38ftp://%HOSTIP:%FTPPORT/ -P %CLIENTIP 39</command> 40</client> 41 42# Verify data after the test has been "shot" 43<verify> 44<strip> 45QUIT 46</strip> 47# Strip all valid kinds of PORT and EPRT that curl can send 48<strip> 49^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} 50^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| 51</strip> 52<protocol> 53USER anonymous 54PASS ftp@example.com 55PWD 56PORT 127,0,0,1,243,212 57TYPE A 58LIST 59QUIT 60</protocol> 61</verify> 62</testcase> 63