test101 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Server-side
  2. <reply>
  3. <data>
  4. total 20
  5. drwxr-xr-x 8 98 98 512 Oct 22 13:06 .
  6. drwxr-xr-x 8 98 98 512 Oct 22 13:06 ..
  7. drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT
  8. -r--r--r-- 1 0 1 35 Jul 16 1996 README
  9. lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin
  10. dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev
  11. drwxrwxrwx 2 98 98 512 May 29 16:04 download.html
  12. dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc
  13. drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub
  14. dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
  15. </data>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. ftp
  21. </server>
  22. <name>
  23. FTP dir list, PORT with specified IP
  24. </name>
  25. <command>
  26. ftp://%HOSTIP:%FTPPORT/ -P %HOSTIP
  27. </command>
  28. </test>
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. # strip all kinds of PORT, EPRT and LPRT curl can do
  32. <strip>
  33. ^PORT 127,0,0,1,.*
  34. ^EPRT.*
  35. ^LPRT.*
  36. </strip>
  37. <protocol>
  38. USER anonymous
  39. PASS curl_by_daniel@haxx.se
  40. PWD
  41. PORT 127,0,0,1,243,212
  42. TYPE A
  43. LIST
  44. QUIT
  45. </protocol>
  46. </verify>