分类:
2008-05-21 14:23:06
ftp://
user:
password@
host:
port/
path
so that some or all of the parts
user:
password@
,
:
password,
:
port
and
/
path
may be excluded. although rfc 1738 has been obsoleted
as regards to generic url syntax (now
defined in
), some of the specific parts, like
ftp url syntax, are still in force.
the components obey the following rules:
:
or @
or
/
, the character must be
/
cwd2/
.../
cwdn/
name
/
or ;
within
a cwdi or the name must be
)
optionally followed by
;type=
typecode
a
, i
, d
effectively, ;type=a
means
"ascii mode" (plain text mode) of transfer whereas
;type=i
means image (binary) mode.
if the ;type=
typecode part of an ftp url
is
omitted, the client program interpreting the url must guess the
appropriate mode to use. in general, the data content type of a file
can only be guessed from the name, e.g., from the suffix of the name;
the appropriate type code to be used for transfer of the file can
then be deduced from the data content of the file.