FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 6th, 2011, 06:37 AM
arbj arbj is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 3 arbj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 44 sec
Reputation 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 03:15 AM. Reason: Solved

Reply With Quote
  #2  
Old November 6th, 2011, 08:15 AM
requinix's Avatar
requinix requinix is offline
Still alive
Click here for more information.
 
Join Date: Mar 2007
Location: Washington, USA
Posts: 12,717 requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)  Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 1 Week 4 Days 7 h 29 m 55 sec
Reputation Power: 8969
Send a message via AIM to requinix Send a message via MSN to requinix Send a message via Yahoo to requinix Send a message via Google Talk to requinix
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

Reply With Quote
  #3  
Old November 7th, 2011, 03:13 AM
arbj arbj is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 3 arbj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 44 sec
Reputation Power: 0
Thanks

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

thanks
a

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > What is the format for sending the response to FEAT

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap