test238 798 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <testcase>
  2. # Server-side
  3. <reply>
  4. <servercmd>
  5. REPLY EPSV 229 Entering Passiv Mode (|||1000000|)
  6. REPLY PASV 227 Entering Passiv Mode (1216,256,2,127,127,127)
  7. </servercmd>
  8. </reply>
  9. # Client-side
  10. <client>
  11. <server>
  12. ftp
  13. </server>
  14. <name>
  15. FTP getting bad port in response to EPSV and in response to PASV
  16. </name>
  17. <command>
  18. ftp://%HOSTIP:%FTPPORT/238
  19. </command>
  20. </client>
  21. # Verify data after the test has been "shot"
  22. <verify>
  23. # curl: (15) Can't resolve new host 1216.256.2.127:32639
  24. # 15 => CURLE_FTP_CANT_GET_HOST
  25. # some systems just don't fail on the illegal host name/address but instead
  26. # moves on and attempt to connect to... yes, to what?
  27. # 7= CURLE_COULDNT_CONNECT
  28. <errorcode>
  29. 7, 15
  30. </errorcode>
  31. <protocol>
  32. USER anonymous
  33. PASS ftp@example.com
  34. PWD
  35. EPSV
  36. PASV
  37. </protocol>
  38. </verify>
  39. </testcase>