test1363 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. RETR
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. # file%TESTNUMBER contents...
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 6
  16. Connection: close
  17. Content-Type: text/html
  18. Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
  19. MOOOO
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. # this relies on the debug feature to allow us to set directory to store the
  25. # -O output in, using the CURL_TESTDIR variable
  26. <features>
  27. debug
  28. </features>
  29. <server>
  30. ftp
  31. </server>
  32. <name>
  33. FTP download, file with C-D inside, using -O -i, without -D
  34. </name>
  35. <setenv>
  36. CURL_TESTDIR=%PWD/log
  37. </setenv>
  38. <command option="no-output,no-include">
  39. ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -i
  40. </command>
  41. <postcheck>
  42. perl %SRCDIR/libtest/notexists.pl log/name%TESTNUMBER
  43. </postcheck>
  44. </client>
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. <protocol>
  48. USER anonymous
  49. PASS ftp@example.com
  50. PWD
  51. CWD path
  52. EPSV
  53. TYPE I
  54. SIZE file%TESTNUMBER
  55. RETR file%TESTNUMBER
  56. QUIT
  57. </protocol>
  58. <file1 name="log/file%TESTNUMBER">
  59. HTTP/1.1 200 OK
  60. Date: Tue, 09 Nov 2010 14:49:00 GMT
  61. Server: test-server/fake
  62. Content-Length: 6
  63. Connection: close
  64. Content-Type: text/html
  65. Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
  66. MOOOO
  67. </file1>
  68. <file2 name="log/stdout%TESTNUMBER">
  69. </file2>
  70. </verify>
  71. </testcase>