prev/next

Passive FTP

How can I use passive mode for FTP downloading/uploading?

Encoding.com does not use FTP passive mode by default when retrieving or placing files. To use FTP with passive mode turned on, add ?passive=yes to the end of your FTP URL string (either source or destination): ftp://user:pass@ftphost.tld/path/to/your/file.ext?passive=yes

Encoding.com does not use FTP passive mode by default when retrieving or placing files. To use FTP with passive mode turned on, add ?passive=yes to the end of your FTP URL string (either source or destination): ftp://user:pass@ftphost.tld/path/to/your/file.ext?passive=yes

<-- Hide
tools: email  |  print  |  share  |  click to rate (rated 4 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter

Double percent-encoding needed for VBScript FTP paths

For VBScript output to work, you may need to percent-encode the destination path twice. Like this.

Regular FTP path:
ftp://username@yourcompany.com:password@server.com/file.m3u8?passive=yes

Single URL (%) encoded - used for some standard FTP configurations
ftp://username%40yourcompany.com:password@server.com/file.m3u8?passive=yes

Double URL (%) encoded - used for VBScript FTP
ftp%3A%2F%2Fusername%2540yourcompany%3Apassword%40server.com%2Ffile.m3u8%3Fpassive%3Dyes

For VBScript output to work, you may need to percent-encode the destination path twice. Like this.

Regular FTP path:
ftp://username@yourcompany.com:password@server.com/file.m3u8?passive=yes

Single URL (%) encoded - used for some standard FTP configurations
ftp://username%40yourcompany.com:password@server.com/file.m3u8?passive=yes

Double URL (%) encoded - used for VBScript FTP
ftp%3A%2F%2Fusername%2540yourcompany%3Apassword%40server.com%2Ffile.m3u8%3Fpassive%3Dyes

<-- Hide

tools: email  |  print  |  share  |  click to rate (rated 3 times):
  • BlinkList
  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • Newsvine
  • Reddit
  • Sphinn
  • Technorati
  • Twitter