quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

ftp-method.md (1167B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Long: ftp-method
      5 Arg: <method>
      6 Help: Control CWD usage
      7 Protocols: FTP
      8 Added: 7.15.1
      9 Category: ftp
     10 Multi: single
     11 See-also:
     12   - list-only
     13 Example:
     14   - --ftp-method multicwd ftp://example.com/dir1/dir2/file
     15   - --ftp-method nocwd ftp://example.com/dir1/dir2/file
     16   - --ftp-method singlecwd ftp://example.com/dir1/dir2/file
     17 ---
     18 
     19 # `--ftp-method`
     20 
     21 Control what method curl should use to reach a file on an FTP(S)
     22 server. The method argument should be one of the following alternatives:
     23 
     24 ## multicwd
     25 Do a single CWD operation for each path part in the given URL. For deep
     26 hierarchies this means many commands. This is how RFC 1738 says it should be
     27 done. This is the default but the slowest behavior.
     28 
     29 ## nocwd
     30 Do no CWD at all. curl does SIZE, RETR, STOR etc and gives the full path to
     31 the server for each of these commands. This is the fastest behavior.
     32 
     33 ## singlecwd
     34 Do one CWD with the full target directory and then operate on the file
     35 "normally" (like in the multicwd case). This is somewhat more standards
     36 compliant than `nocwd` but without the full penalty of `multicwd`.