[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-user
Subject:    [Net] FTP custom put command failing
From:       "Cardinali, Samantha" <Samantha.Cardinali () bausch ! com>
Date:       2004-02-25 12:00:46
Message-ID: 37F0672F617FD511991700508BBBA9B204E36C77 () BLMSLHREHQ01 ! bausch ! com
[Download RAW message or body]

Hi,

I am attempting to upload files to a Tradanet server that only accepts a
custom put command using the following syntax:

put filename %senderid%recipientid%filetype%transfermode

I have tried sendSiteCommand(string cmd) and sendCommand(string cmd), where
cmd is a single string containing the put command with arguments, but the
process returns an error: 

501: 501-Syntax errors in parameter.
usage: ['single' | 'multiple']

I assumed that the send[Site]Command(strArg) would not attempt to parse the
argument, so this is coming from the server, however the same command works
instantly when sent via a batch file/ftp script from the same project.

Could anyone please assist me? I am new to both Java and CommonsNet, and
have obviously missed something important.

Many thanks,
Samantha




Bausch & Lomb
150 Years of Perfecting Vision, Enhancing Life (TM)






EMAIL DISCLAIMER 

Please Note: The information contained in this message may be privileged and
confidential, protected from disclosure, and/or intended only for the use of
the individual or entity named above. If the reader of this message is not
the intended recipient, or an employee or agent responsible for delivering
this message to the intended recipient, you are hereby notified that any
disclosure, distribution, copying or other dissemination of this
communication is strictly prohibited. If you received this communication in
error, please immediately reply to the sender, delete the message and
destroy all copies of it.

Thank You


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic