ftp-method.d 1.0 KB

12345678910111213141516171819202122232425
  1. Long: ftp-method
  2. Arg: <method>
  3. Help: Control CWD usage
  4. Protocols: FTP
  5. Added: 7.15.1
  6. Category: ftp
  7. Example: --ftp-method multicwd ftp://example.com/dir1/dir2/file
  8. Example: --ftp-method nocwd ftp://example.com/dir1/dir2/file
  9. Example: --ftp-method singlecwd ftp://example.com/dir1/dir2/file
  10. ---
  11. Control what method curl should use to reach a file on an FTP(S)
  12. server. The method argument should be one of the following alternatives:
  13. .RS
  14. .IP multicwd
  15. curl does a single CWD operation for each path part in the given URL. For deep
  16. hierarchies this means very many commands. This is how RFC 1738 says it should
  17. be done. This is the default but the slowest behavior.
  18. .IP nocwd
  19. curl does no CWD at all. curl will do SIZE, RETR, STOR etc and give a full
  20. path to the server for all these commands. This is the fastest behavior.
  21. .IP singlecwd
  22. curl does one CWD with the full target directory and then operates on the file
  23. \&"normally" (like in the multicwd case). This is somewhat more standards
  24. compliant than 'nocwd' but without the full penalty of 'multicwd'.
  25. .RE