test1348 843 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. RETR
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. fooo
  12. mooo
  13. </data>
  14. </reply>
  15. # Client-side
  16. <client>
  17. # this relies on the debug feature to allow us to set directory to store the
  18. # -O output in, using the CURL_TESTDIR variable
  19. <features>
  20. debug
  21. </features>
  22. <server>
  23. ftp
  24. </server>
  25. <name>
  26. FTP download, file without Content-Disposition inside, using -O
  27. </name>
  28. <setenv>
  29. CURL_TESTDIR=%PWD/log
  30. </setenv>
  31. <command option="no-output,no-include">
  32. ftp://%HOSTIP:%FTPPORT/path/file1348 -O
  33. </command>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <protocol>
  38. USER anonymous
  39. PASS ftp@example.com
  40. PWD
  41. CWD path
  42. EPSV
  43. TYPE I
  44. SIZE file1348
  45. RETR file1348
  46. QUIT
  47. </protocol>
  48. <file1 name="log/file1348">
  49. fooo
  50. mooo
  51. </file1>
  52. <file2 name="log/stdout1348">
  53. </file2>
  54. </verify>
  55. </testcase>