Quote Site P_Dest

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
nickstersc
Posts: 11
Joined: Wed Mar 07, 2007 3:46 pm

Quote Site P_Dest

Post by nickstersc » Tue Jun 09, 2009 6:51 am

How do I replocate the following using your software?

Quote Site P_Dest XFBCFT

Put Filename DirName

Thanks
Nic

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Quote Site P_Dest

Post by mb » Tue Jun 09, 2009 8:58 am

Using the FTP Library?

nickstersc
Posts: 11
Joined: Wed Mar 07, 2007 3:46 pm

Re: Quote Site P_Dest

Post by nickstersc » Tue Jun 09, 2009 10:48 am

Using the FTP Library?
I take it that it is not possible?

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Quote Site P_Dest

Post by mb » Tue Jun 09, 2009 1:02 pm

I need to first understand what you are trying to do and with what product.

nickstersc
Posts: 11
Joined: Wed Mar 07, 2007 3:46 pm

Re: Quote Site P_Dest

Post by nickstersc » Tue Jun 09, 2009 1:33 pm

I need to first understand what you are trying to do and with what product.
I am indeed using the FTP library and I have been told by the company we are FTP'ing to I need to use that syntax.

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Quote Site P_Dest

Post by mb » Tue Jun 09, 2009 2:12 pm

pConnection->Command("SITE P_Dest XFBCFT")
pConnection->UploadFile(source, destination 0,0, 0,0)

nickstersc
Posts: 11
Joined: Wed Mar 07, 2007 3:46 pm

Re: Quote Site P_Dest

Post by nickstersc » Tue Jun 09, 2009 2:40 pm

pConnection->Command("SITE P_Dest XFBCFT")
pConnection->UploadFile(source, destination 0,0, 0,0)

Thanks for this but I am still getting an error - basically this is what i need to send

open ftpsite
username
password
QUOTE SITE P_DEST XFBCFT
BIN
PUT "localFile" destpath
bye

and this is what the log says

[20090609 15:55:31] SmartFTP FTP Library v1.5.9.7
[20090609 15:55:37] Resolving host name ""
[20090609 15:55:37] Connecting to Port: 21
[20090609 15:55:37] Connected to .
[20090609 15:55:37] 220 Welcome to server
[20090609 15:55:37] USER
[20090609 15:55:37] 331 Send password please
[20090609 15:55:37] PASS
[20090609 15:55:37] 230 User logged in, proceed
[20090609 15:55:37] SYST
[20090609 15:55:37] 215 UNIX XFB/UNKNOWN
[20090609 15:55:37] Detected Server Type: UNIX
[20090609 15:55:37] FEAT
[20090609 15:55:37] 211-Extensions supported
[20090609 15:55:37] 211- SIZE
[20090609 15:55:37] 211- MDTM
[20090609 15:55:37] 211- AUTH TLS
[20090609 15:55:37] 211- PBSZ
[20090609 15:55:37] 211- PROT
[20090609 15:55:37] 211 End of feat command response
[20090609 15:55:37] TYPE I
[20090609 15:55:37] 200 Command okay
[20090609 15:55:37] REST 0
[20090609 15:55:37] 500 Syntax error, command unrecognized
[20090609 15:55:37] PWD
[20090609 15:55:37] 257 "/" is current directory.
[20090609 15:55:45] SITE P_Dest XFBCFT
[20090609 15:55:45] 200 Site command accepted
[20090609 15:55:48] TYPE A
[20090609 15:55:48] 200 Command okay
[20090609 15:55:48] PASV
[20090609 15:55:48] 227 Entering passive mode ().
[20090609 15:55:48] Opening data connection to Port:
[20090609 15:55:48] STOR Test.zip
[20090609 15:55:48] 125 Start receiving 's382752.Test.zip', remote file is: Test.zip
[20090609 15:55:48] An existing connection was forcibly closed by the remote host.
[20090609 15:55:48] 36864 bytes transferred. (192 KB/s) (187 ms)
[20090609 15:55:49] 451 Requested action aborted: local error in processing

ANy ideas? Thanks for all your help.

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Quote Site P_Dest

Post by mb » Tue Jun 09, 2009 3:02 pm

You are uploading the file in Ascii mode. Use the default value which is Binary.
pConnection->DataTransferType = ftpDataTransferTypeBinary;

Regards,
Mat
Last edited by mb on Tue Jun 09, 2009 3:05 pm, edited 1 time in total.

nickstersc
Posts: 11
Joined: Wed Mar 07, 2007 3:46 pm

Re: Quote Site P_Dest

Post by nickstersc » Wed Jun 10, 2009 7:19 am

You are uploading the file in Ascii mode. Use the default value which is Binary.
pConnection->DataTransferType = ftpDataTransferTypeBinary;

Regards,
Mat

The only options I have are
ftpDataTransferTypeASCII
ftpDataTransferTypeEBCDIC
ftpDataTransferTypeImage
ftpDataTransferTypeUnknown

Which should i use?

nickstersc
Posts: 11
Joined: Wed Mar 07, 2007 3:46 pm

Re: Quote Site P_Dest

Post by nickstersc » Wed Jun 10, 2009 8:48 am

The only options I have are
ftpDataTransferTypeASCII
ftpDataTransferTypeEBCDIC
ftpDataTransferTypeImage
ftpDataTransferTypeUnknown

Which should i use?


I keep getting ftpErrorWrongReply as my response. What could that mean?

Post Reply