#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    3
    Rep Power
    0

    [SOLVED]What is the format for sending the response to FEAT


    Hi,

    Could anyone explain me how to send directory and file listings...in response to a LIST command ??

    Filezilla fails to understand the data I send..

    Also please explain how to respond to a FEAT command ...

    thanks
    a
    Last edited by arbj; November 7th, 2011 at 04:15 AM. Reason: Solved
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,244
    Rep Power
    9400
    It sounds like your difficulty is with multi-line responses. Here's what they look like
    Code:
    123-ABC
    Foo
    Bar
     789 Baz
    123 XYZ
    • The response line begins with the number as usual, but next comes a hyphen - not a space.
    • Subsequent lines follow. If any of them begin with a number then the line should be indented with whitespace.
    • The final line is the status code, a space, and then arbitrary text.


    So your LIST should look like
    Code:
    NNN-Directory listing of /foo/bar
    One
    Two
    Three
    NNN End of listing
    FEAT is defined a little more precisely:
    Code:
    211-Foo
     feature
     feature parameters
     feature parameters
    211 End
    • A 211 status code with any message,
    • Lines beginning with a space. First "word" is the feature and more information may follow (after a space),
    • A "211 End"


    See also: RFC 959 (4.1.3 for LIST; 4.2 for multi-line responses), RFC 2389 (FEAT), RFC 3659 (FTP extensions).

    Comments on this post

    • arbj agrees : very helpful
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    3
    Rep Power
    0

    Thanks


    Thanks a lot it works now, your explanation was the most helpful and illuminating...

    thanks
    a

IMN logo majestic logo threadwatch logo seochat tools logo