Subject: Re: [1.4beta/i386 boot floppy] ftp url parsing
To: Todd Vierling <tv@pobox.com>
From: Luke Mewburn <lukem@goanna.cs.rmit.edu.au>
List: current-users
Date: 04/28/1999 00:04:33
Todd Vierling writes:
> On Tue, 27 Apr 1999 itojun@iijlab.net wrote:
> 
> : >: I didn't see the original message, so I am not sure exactly what problem
> : >: you encountered, but from the part that Perry quoted I believe that just
> : >: sending "CWD /" would be wrong. 
> : >However, it's what all other Web-based FTP clients (see Lynx, Nutscrape) do,
> : >so we should match.  Otherwise the URL ftp://host/path is NOT processed
> : >correctly, as we are *incorrectly* assuming that an FTP connection starts
> : >with cwd at /.
> : 
> : 	Sorry, I made a mistake.  Let me rephrase the problem.
> : 	The problem is not in ftp but in sysinst (I should check the source
> : 	code but not possible right now).
> 
> : 		ftp://itojun:secret@myhost.itojun.org/export4/home
> : 	But, it should be translated as
> : 		ftp://itojun:secret@myhost.itojun.org/%2fexport4/home
> 
> Actually, the bug is in ftp:  the top URL is correct; ftp is not fetching it
> properly.  (I have run into this problem outside of sysinst.)

Again, this is *NOT A BUG IN FTP*.

If you use the URL syntax to retreive files, then you get the
`benefit' of ftp parsing the URL as per RFC 1738.

RTFM. RTFRFC.