ftp-port.d 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Long: ftp-port
  2. Arg: <address>
  3. Help: Use PORT instead of PASV
  4. Short: P
  5. Protocols: FTP
  6. See-also: ftp-pasv disable-eprt
  7. Category: ftp
  8. Example: -P - ftp:/example.com
  9. Example: -P eth0 ftp:/example.com
  10. Example: -P 192.168.0.2 ftp:/example.com
  11. ---
  12. Reverses the default initiator/listener roles when connecting with FTP. This
  13. option makes curl use active mode. curl then tells the server to connect back
  14. to the client's specified address and port, while passive mode asks the server
  15. to setup an IP address and port for it to connect to. <address> should be one
  16. of:
  17. .RS
  18. .IP interface
  19. e.g. "eth0" to specify which interface's IP address you want to use (Unix only)
  20. .IP "IP address"
  21. e.g. "192.168.10.1" to specify the exact IP address
  22. .IP "host name"
  23. e.g. "my.host.domain" to specify the machine
  24. .IP "-"
  25. make curl pick the same IP address that is already used for the control
  26. connection
  27. .RE
  28. If this option is used several times, the last one will be used. Disable the
  29. use of PORT with --ftp-pasv. Disable the attempt to use the EPRT command
  30. instead of PORT by using --disable-eprt. EPRT is really PORT++.
  31. Since 7.19.5, you can append \&":[start]-[end]\&" to the right of the address,
  32. to tell curl what TCP port range to use. That means you specify a port range,
  33. from a lower to a higher number. A single number works as well, but do note
  34. that it increases the risk of failure since the port may not be available.