disable-eprt.d 1023 B

12345678910111213141516171819202122232425
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: disable-eprt
  4. Help: Inhibit using EPRT or LPRT
  5. Protocols: FTP
  6. Category: ftp
  7. Example: --disable-eprt ftp://example.com/
  8. Added: 7.10.5
  9. See-also: disable-epsv ftp-port
  10. ---
  11. Tell curl to disable the use of the EPRT and LPRT commands when doing active
  12. FTP transfers. Curl will normally always first attempt to use EPRT, then LPRT
  13. before using PORT, but with this option, it will use PORT right away. EPRT and
  14. LPRT are extensions to the original FTP protocol, and may not work on all
  15. servers, but they enable more functionality in a better way than the
  16. traditional PORT command.
  17. --eprt can be used to explicitly enable EPRT again and --no-eprt is an alias
  18. for --disable-eprt.
  19. If the server is accessed using IPv6, this option will have no effect as EPRT
  20. is necessary then.
  21. Disabling EPRT only changes the active behavior. If you want to switch to
  22. passive mode you need to not use --ftp-port or force it with --ftp-pasv.