home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.protocols.tcp-ip
- Subject: Re: FTP RFC and multi-line replies?
- Date: 3 Sep 1992 04:33:13 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 37
- Message-ID: <1844i9INNrn8@early-bird.think.com>
- References: <peter-020992112136@134.7.50.3>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <peter-020992112136@134.7.50.3> peter@cujo.curtin.edu.au (Peter N Lewis) writes:
- > If
- > an intermediary line begins with a 3-digit number, the Server
- > must pad the front to avoid confusion.
- >
- >In particular the last sentence, would indicate that the above format is in
- >fact illegal
-
- I think that sentence was misworded. It should have said, "If an
- intermediary line begins with a 3-digit number followed by space, ...."
- There's clearly no reason why a client should be confused by intermediary
- lines prefixed with "123-".
-
- >But thats neither here nor there. I'm wondering if there is any
- >disagreement on this point, is the first format actually valid?
-
- Certainly. The rule is that the first line must begin with "123-", the
- last line must begin with "123<space>", and the intermediary lines must not
- begin with "123<space>". The above sentence was intended to easy
- interoperability with clients that look for any
- <digit><digit><digit><space> prefix rather than trying to match the
- original ("Be conservative in what you send").
-
- I've seen some FTP servers whose greeting messages contain:
-
- 230-If your ftp client has problems with the extended messages (or if you
- 230-simply find such messages annoying), connect again and use a password
- 230-that begins with "-" to disable these messages.
-
- So I suppose there are some clients out there that can't handle multiline
- replies. However, they may have trouble with them in any format.
-
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-