test1209 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. PORT
  6. RETR
  7. NODATACONN
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. some bytes
  14. </data>
  15. <servercmd>
  16. NODATACONN
  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 positive preliminary reply
  26. </name>
  27. <command>
  28. --max-time %FTPTIME2 ftp://%HOSTIP:%FTPPORT/1209 -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. # The protocol part does not include QUIT simply because the error is
  37. # CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout error without
  38. # specificly saying for which connection it concerns, and for timeouts libcurl
  39. # marks the control channel as "invalid". As this test case times out for the
  40. # data connection it could still use the control channel.
  41. <protocol>
  42. USER anonymous
  43. PASS ftp@example.com
  44. PWD
  45. EPRT |1|
  46. TYPE I
  47. SIZE 1209
  48. RETR 1209
  49. </protocol>
  50. <errorcode>
  51. 28
  52. </errorcode>
  53. </verify>
  54. </testcase>