Re: issue with ftp::Quote STATUS .



In article <1177597912.942299.215730@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Patrick Finnegan <finnegan.patrick@xxxxxxxxx> writes:
Running Tcl 8.4.14 on Windows XP.

I am trying to use the ftp:Quote option to send native FTP commands to
an FTP server but it returns "command not understood".

Works from the ftp command line on tyhe same machines.

(bin) 65 % ftp::Pwd $session
/
(bin) 66 % ftp::Quote $session STATUS
500 'STATUS': command not understood.

Output from command line FTP.

ftp> status
Connected to 12.34.56.78..
Type: ascii; Verbose: On ; Bell: Off ; Prompting: On ; Globbing: On
Debugging: Off ; Hash mark printing: Off .

If you are going to use FTP commands directly, you really should
study the FTP protocol (RFC 959), otherwise you are operating in
the dark.

You will also find it instructive to ask your ftp command to show
you the actual protocol interactions as the ftp client is interpreting
the commands that your type. (I don't use Windows XP, but the
command is probably something like "debug".) In this particular
case, you will find that the ftp client is almost certainly simply
reporting to you its current state based on its local information.
There is probably *no* FTP command transmitted whatsoever (for
this particular client command).

There is an FTP 'STAT' command, but I don't know if it does what
you want as it's not clear what you are really trying to do.

Also, in response to another suggestion in this thread, the case
of the command does not matter. FTP, as most Internet protocols,
is case insensitive. (Thus, you could use STAT, stat, Stat, or
even sTaT over the wire.)

- dmw

--
.. Douglas Wells . Connection Technologies .
.. Internet: -sp9804- -at - contek.com- .
.



Relevant Pages

  • Re: Job Stream via FTP
    ... This is a specific instance of the general rule that, if an FTP client doesn't understand the command you wish to send to the FTP server, you should "quote" it, as it were. ...
    (bit.listserv.ibm-main)
  • Re: FTP transfer problems
    ... The MPEiX FTP client is simply terminating ... If it is then what command does one run from ... * To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: Problem about Window Xp SP2 firewall and the buildin FTP command
    ... I copy your example ftp command file to a.txt saved in C:\dell folder. ... I cannot turn off Windows Firewall, since it is controlled by Domain ...
    (microsoft.public.windowsxp.general)
  • [NT] Multiple Vulnerabilities Found in PlatinumFTPserver
    ... A vulnerability in the product allows remote attackers to cause the server ... to traverse into directories that reside outside the bounding FTP root ... delete files and perform a DoS attack on the server. ... 200 PORT command successful ...
    (Securiteam)
  • Re: FTP strangeness
    ... Listing an empty existing directory shouldn't return an error code. ... servers cannot issue a 550 reply to a LIST command. ... As demonstrated more than just VMS ftp servers do the latter - for situations ... In any case an FTP client should comply with the robustness principle of RFC ...
    (comp.os.vms)