test539 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. <data mode="text">
  6. file contents
  7. </data>
  8. <datacheck>
  9. file contents
  10. total 20
  11. drwxr-xr-x 8 98 98 512 Oct 22 13:06 .
  12. drwxr-xr-x 8 98 98 512 Oct 22 13:06 ..
  13. drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT
  14. -r--r--r-- 1 0 1 35 Jul 16 1996 README
  15. lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin
  16. dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev
  17. drwxrwxrwx 2 98 98 512 May 29 16:04 download.html
  18. dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc
  19. drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub
  20. dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
  21. </datacheck>
  22. </reply>
  23. # Client-side
  24. <client>
  25. <server>
  26. ftp
  27. </server>
  28. # tool is what to use instead of 'curl'
  29. <tool>
  30. lib539
  31. </tool>
  32. <name>
  33. Two FTP fetches using different CURLOPT_FTP_FILEMETHOD
  34. </name>
  35. <command>
  36. ftp://%HOSTIP:%FTPPORT/path/to/the/file/539
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. USER anonymous
  44. PASS [email protected]
  45. PWD
  46. CWD path/to/the/file
  47. EPSV
  48. TYPE I
  49. SIZE 539
  50. RETR 539
  51. SYST
  52. CWD /nowhere/anywhere
  53. EPSV
  54. TYPE A
  55. LIST path/to/the/file/539./
  56. QUIT
  57. </protocol>
  58. </verify>
  59. </testcase>