FTP context options
FTP context options — FTP context option listing
说明
Context options for ftp:// and ftps://transports.
可选项
overwrite boolean
Allow overwriting of already existing files on remote server.Applies to write mode (uploading) only.
Defaults to FALSE.
resume_pos integer
File offset at which to begin transfer. Applies to read mode (downloading) only.
Defaults to 0 (Beginning of File).
proxy string
Proxy FTP request via http proxy server. Applies to file readoperations only. Ex: tcp://squid.example.com:8000.
更新日志
版本
说明
5.1.0 Added proxy.
5.0.0 Added overwrite and resume_pos.
注释
Note: Underlying socket stream context options
Additional context options may be supported by the underlying transportFor ftp:// streams, refer to contextoptions for the tcp:// transport. For ftps:// streams, refer to context optionsfor the ssl:// transport.
参见
◾ftp://
◾Socket context options
◾SSL context options
发表评论 取消回复