ftp protocol and urlpath

Daniel Dignam (daniel@edsug.com)
Wed, 02 Oct 1996 16:02:09 +0100


Hi,

    I'm trying to use GET to retrieve files from an ftp deamon on an NT
box. It would appear that the / between the host and the urlpath is
being sent as part of the request to the ftp deamon, instead of just the
urlpath.

    For example, if I do the following

       GET -x ftp://fraggle:rock@lighthouse/d:

we get the following command being sent

LWP::IO::write: Write 10 bytes: 'list /d:
'

   I guess I would expect the command to be list d:. From RFC 1738 we
have the following defintion:

    //<user>:<password>@<host>:<port>/<url-path>

and from 3.2.2. FTP url-path, we have: 

    The url-path of a FTP URL has the following syntax: 

              <cwd1>/<cwd2>/.../<cwdN>/<name>;type=<typecode>

  Doesn't this mean that / between the host and the urlpath is not part
of the request ?

  Your in confusion,

-- 

Daniel Dignam,                             
mailto:daniel@edsug.com                    
Assemblies Development                       Phone: +44 1223-371591
EDS Unigraphics                                FAX: +44 1223-316931

          http://www-sdl.ug.eds.com/ug_assemblies.html