test539 1.3 KB

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