ftp-port.d 1.4 KB

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