test1208 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. PORT
  6. RETR
  7. NODATACONN150
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. some bytes
  14. </data>
  15. <servercmd>
  16. NODATACONN150
  17. </servercmd>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. ftp
  23. </server>
  24. <name>
  25. FTP PORT download, no data conn and no transient negative reply
  26. </name>
  27. <command>
  28. --max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/1208 -P -
  29. </command>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <strippart>
  34. s/^EPRT \|1\|(.*)/EPRT \|1\|/
  35. </strippart>
  36. # This test doesn't send a QUIT because the main state machine in multi.c
  37. # triggers the timeout and sets the CURLE_OPERATION_TIMEDOUT error (28) for
  38. # which the FTP disconect code generically has to assume could mean the
  39. # control the connection and thus it cannot send any command.
  40. <protocol>
  41. USER anonymous
  42. PASS ftp@example.com
  43. PWD
  44. EPRT |1|
  45. TYPE I
  46. SIZE 1208
  47. RETR 1208
  48. </protocol>
  49. <errorcode>
  50. 28
  51. </errorcode>
  52. </verify>
  53. </testcase>