Default language.

Unsupported content This version of the product is in limited support. However, the documentation is available for your convenience. You will not be able to leave comments.

FTP Specific Scheme


The FTP URL scheme is used to designate files and directories on Internet hosts accessible using the FTP protocol.

Syntax



ftp://<user>:<password>@<host>:<port>/<dir1>/<dir2>/.../<dirN>/<filename>;type=<typecode>

User

specifies an optional user name.

Password

specifies an optional password to the user name. If present, it follows the user name separated from it by a colon. Be sure to escape the @ of the email address when accessing an outside server with the anonymous logon, for example:Unsafe characters, such as &, @ or : , should generally be escaped through the general escape scheme: % digit digit , for example, @ is escaped to %40 , : is escaped to %09 , and so on Also note that an empty user name or password is different than no user name or password; there is no way to specify a password without specifying a user name.

Port

defines the port number to connect to. The default port is 21.

Dir1 - DirN

list the directory hierarchy on the server to the file. These parameters are optional.

File name

specifies the name of the file to be accessed with its extension.

Typecode

defines the mode of transfer for the file depending on the data content type of the file. Valid values are the characters a, i or d . This parameter ( ;type=<typecode> ) is optional.

Example 1

Example for a password login.



ftp://myname:hello@lenny/lucky.png

Example for an anonymous login with email address as password.



ftp://anonymous:myname%40spyinternation.com@lenny/lucky.png/

Example 2

The following table shows examples about the use of no or empty user names and password:

ftp://@host.com/

has an empty user name and no password

ftp://host.com/

has no user name

ftp://foo:@host.com/

has a user name of foo and an empty password.

Example 3

The following table shows different examples for the use of the Directory and file name parameters.

ftp://myname@host.dom/%2Fetc/motd

is interpreted by FTP-ing to host.dom , logging in as myname (prompting for a password if it is asked for), and then executing CWD /etc and then RETR motd .

ftp://myname@host.dom/etc/motd

would CWD etc and then RETR motd ; the initial CWD might be executed relative to the default directory for myname .

ftp://myname@host.dom//etc/motd

would CWD with a null argument, then CWD etc , and then RETR motd .

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*