2
0

test237 805 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. <servercmd>
  10. REPLY PASV 227 Entering Passiv Mode (1216,256,2,127,127,127)
  11. </servercmd>
  12. </reply>
  13. # Client-side
  14. <client>
  15. <server>
  16. ftp
  17. </server>
  18. <name>
  19. FTP getting bad host in 227-response to PASV
  20. </name>
  21. <command>
  22. ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --disable-epsv
  23. </command>
  24. </client>
  25. # Verify data after the test has been "shot"
  26. # The bogus address used here is chosen specifically so that when processed on
  27. # certain hosts with buggy resolver code, the resulting address (192.0.2.127)
  28. # is from an address block that is guaranteed never to be assigned (RFC3330).
  29. <verify>
  30. # 14 = CURLE_FTP_WEIRD_227_FORMAT
  31. <errorcode>
  32. 14
  33. </errorcode>
  34. <protocol>
  35. USER anonymous
  36. PASS ftp@example.com
  37. PWD
  38. PASV
  39. </protocol>
  40. </verify>
  41. </testcase>