ftp-method.d 866 B

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