quickjs-tart

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

ftp-port.md (1514B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Long: ftp-port
      5 Arg: <address>
      6 Help: Send PORT instead of PASV
      7 Short: P
      8 Protocols: FTP
      9 Category: ftp
     10 Added: 4.0
     11 Multi: single
     12 See-also:
     13   - ftp-pasv
     14   - disable-eprt
     15 Example:
     16   - -P - ftp:/example.com
     17   - -P eth0 ftp:/example.com
     18   - -P 192.168.0.2 ftp:/example.com
     19 ---
     20 
     21 # `--ftp-port`
     22 
     23 Reverse the default initiator/listener roles when connecting with FTP. This
     24 option makes curl use active mode. curl then commands the server to connect
     25 back to the client's specified address and port, while passive mode asks the
     26 server to setup an IP address and port for it to connect to. \<address\>
     27 should be one of:
     28 
     29 ## interface
     30 e.g. **eth0** to specify which interface's IP address you want to use (Unix only)
     31 
     32 ## IP address
     33 e.g. **192.168.10.1** to specify the exact IP address
     34 
     35 ## hostname
     36 e.g. **my.host.domain** to specify the machine
     37 
     38 ## -
     39 make curl pick the same IP address that is already used for the control
     40 connection. This is the recommended choice.
     41 
     42 ##
     43 
     44 Disable the use of PORT with --ftp-pasv. Disable the attempt to use the EPRT
     45 command instead of PORT by using --disable-eprt. EPRT is really PORT++.
     46 
     47 You can also append ":[start]-[end]" to the right of the address, to tell
     48 curl what TCP port range to use. That means you specify a port range, from a
     49 lower to a higher number. A single number works as well, but do note that it
     50 increases the risk of failure since the port may not be available.
     51 (Added in 7.19.5)