I am trying to use Core LE to upload files to a FTPS server.
I noticed that the file arrived in the remote server will be 3k smaller than the file in source directory after transfer complete. It cause the program keep resending the same file.
Any setting can be adjust to avoid this issue?
PWD
257 "/Temp"
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,184).
STOR 16-Sep-09.log
Connect socket #620 to 203.18.239.56, port 3000...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
16-Sep-09.log - 352213 bytes transferred
PASV
227 Entering Passive Mode (203,18,239,56,11,190).
LIST
Connect socket #632 to 203.18.239.56, port 3006...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
MDTM 16-Sep-09.log
213 20091029084957
File exists, prompting user...
Thanks
FTPS- Local & Remote file difference size
Thanks CP, I am planning to use the program to transfer the files in 500MB to 1GB. so the file will only get bigger. I tried set the transfer mode to BIN, it didn't help.
Please look at the log below, file: 16-Sep-09.log & 17-Sep-09.log is 346KB & and 699KB, but after transfer to the FTPS server, it became 343KB and 696KB. This only happen in FTPS connection, normal FTP is OK.
230 Login successful.
SYST
215 UNIX Type: L8
Keep alive off...
PWD
257 "/"
PBSZ 0
200 PBSZ set to 0.
PROT P
200 PROT now Private.
PASV
227 Entering Passive Mode (203,18,239,56,11,194).
LIST
Connect socket #356 to 203.18.239.56, port 3010...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
Transferred 382 bytes in 10.514 seconds
CWD /Temp
250 Directory successfully changed.
PASV
227 Entering Passive Mode (203,18,239,56,11,185).
LIST
Connect socket #344 to 203.18.239.56, port 3001...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
Transferred 71 bytes in 10.514 seconds
DELE 16-Sep-09.log
250 Delete operation successful.
PASV
227 Entering Passive Mode (203,18,239,56,11,191).
LIST
Connect socket #780 to 203.18.239.56, port 3007...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
Transferred 0 bytes in 10.515 seconds
PWD
257 "/Temp"
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,184).
STOR 16-Oct-09.log
Connect socket #812 to 203.18.239.56, port 3000...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
16-Oct-09.log - 723 bytes transferred
MDTM 20091015170010 16-Oct-09.log
213 File modification time set.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,191).
STOR 16-Sep-09.log
Connect socket #816 to 203.18.239.56, port 3007...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
16-Sep-09.log - 352213 bytes transferred
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,185).
STOR 17-Oct-09.log
Connect socket #812 to 203.18.239.56, port 3001...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
17-Oct-09.log - 723 bytes transferred
MDTM 20091016170010 17-Oct-09.log
213 File modification time set.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,187).
STOR 17-Sep-09.log
Connect socket #816 to 203.18.239.56, port 3003...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
17-Sep-09.log - 712617 bytes transferred
PASV
227 Entering Passive Mode (203,18,239,56,11,184).
LIST
Connect socket #812 to 203.18.239.56, port 3000...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
MDTM 16-Sep-09.log
213 20091030012130
File exists, prompting user...
16-Sep-09.log Aborted...
Transfer time: 00:00:27
Please look at the log below, file: 16-Sep-09.log & 17-Sep-09.log is 346KB & and 699KB, but after transfer to the FTPS server, it became 343KB and 696KB. This only happen in FTPS connection, normal FTP is OK.
230 Login successful.
SYST
215 UNIX Type: L8
Keep alive off...
PWD
257 "/"
PBSZ 0
200 PBSZ set to 0.
PROT P
200 PROT now Private.
PASV
227 Entering Passive Mode (203,18,239,56,11,194).
LIST
Connect socket #356 to 203.18.239.56, port 3010...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
Transferred 382 bytes in 10.514 seconds
CWD /Temp
250 Directory successfully changed.
PASV
227 Entering Passive Mode (203,18,239,56,11,185).
LIST
Connect socket #344 to 203.18.239.56, port 3001...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
Transferred 71 bytes in 10.514 seconds
DELE 16-Sep-09.log
250 Delete operation successful.
PASV
227 Entering Passive Mode (203,18,239,56,11,191).
LIST
Connect socket #780 to 203.18.239.56, port 3007...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
Transferred 0 bytes in 10.515 seconds
PWD
257 "/Temp"
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,184).
STOR 16-Oct-09.log
Connect socket #812 to 203.18.239.56, port 3000...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
16-Oct-09.log - 723 bytes transferred
MDTM 20091015170010 16-Oct-09.log
213 File modification time set.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,191).
STOR 16-Sep-09.log
Connect socket #816 to 203.18.239.56, port 3007...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
16-Sep-09.log - 352213 bytes transferred
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,185).
STOR 17-Oct-09.log
Connect socket #812 to 203.18.239.56, port 3001...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
17-Oct-09.log - 723 bytes transferred
MDTM 20091016170010 17-Oct-09.log
213 File modification time set.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (203,18,239,56,11,187).
STOR 17-Sep-09.log
Connect socket #816 to 203.18.239.56, port 3003...
150 Ok to send data.
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
226 File receive OK.
17-Sep-09.log - 712617 bytes transferred
PASV
227 Entering Passive Mode (203,18,239,56,11,184).
LIST
Connect socket #812 to 203.18.239.56, port 3000...
TLSv1, cipher TLSv1/SSLv3 (DES-CBC3-SHA) - 168 bit
150 Here comes the directory listing.
226 Directory send OK.
MDTM 16-Sep-09.log
213 20091030012130
File exists, prompting user...
16-Sep-09.log Aborted...
Transfer time: 00:00:27
I noticed that if I set the buffer setting to default: Send 512K, Rx: 4096K, it transfer OK, but the xsfer speed limit to 50kbps. If I chang the send buffer to 8192k, the transfer speed can be upto 650kbps.
But the problem is I can't change the send buffer setting. I tried: 8192,4096,2048,1024. all send file into wrong size.
But the problem is I can't change the send buffer setting. I tried: 8192,4096,2048,1024. all send file into wrong size.