ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Post here if you experience file transfer problems or unexpected errors.
I am trying to upload a file in a local directory to a remote server using implicit TLS / SSL on port 990 but I receive error 17533 "Policy requires SSL". It should be sending "PROT P" not "PROT C". I must be missing something here, my script is as follows:
FTP Script
  1. LOGTO("C:\TEST.TXT",APPEND)
  2. VERBOSE(ON)
  3. SETPROTOCOL(FTPS_IMPLICIT)
  4. OPENHOST("hostname","username","password")
  5. LOCALCHDIR("localdirectory")
  6. PUTFILE("*.CSV")
Here is the log file output:
VERBOSE(ON)
Verbose mode enabled

SETPROTOCOL(FTPS_IMPLICIT)
Setting protocol to FTP over SSL (implicit).
Setting TCP port to 990.

OPENHOST("hostname","username","password")
Connecting to hostname
Resolving host name hostname
Connecting to hostname Port: 990
Connected to hostname.
Connected. Exchanging encryption keys...
Session Cipher: 128 bit RC4
TLS encrypted session established.
220 Microsoft FTP Service
USER username
331 Password required for username.
PASS password
230 User logged in.
SYST
215 Windows_NT
FEAT
211-Extended features supported:
LANG EN*
UTF8
AUTH TLS;TLS-C;SSL;TLS-P;
PBSZ
PROT C;P;
CCC
HOST
SIZE
MDTM
211 END
OPTS UTF8 ON
200 OPTS UTF8 command successful - UTF8 encoding now ON.
TYPE I
200 Type set to I.
REST 0
350 Restarting at 0.
PWD
257 "/" is current directory.
Connected.

LOCALCHDIR("localdirectory")
Changing current local directory to localdirectory

SETUPLOADMODE("DIRECT")
Setting upload mode to not use temporary remote file.

PUTFILE("*.CSV")
Uploading................. 000015.csv
PBSZ 0
200 PBSZ command successful.
PROT C
533 Policy requires SSL.
PROT C
***** PUTFILE Error #17533: Cannot upload local file 000015.csv.
***** The server said: Policy requires SSL.

CWD /
533 Policy requires SSL.
250 CWD command successful.

CLOSEHOST
QUIT
221 Goodbye.
Client closed the connection.
Disconnected.
Hello,

Have you tried the other FTPS modes?
FTP Script
  1. SETPROTOCOL(FTPS_EXPLICIT_ENCRYPT_DATA)
  2. SETPROTOCOL(FTPS_EXPLICIT)
I have the same problem although with downloading it says Error 17534, otherwise everything the same.
Explicit does NOT work on this server, so I need to get Implicit working.
When I compare verbose logging from ScriptFtp and another (working) ftpclient, I think I see the problem - the PROT commands below should be PROT P not PROT C. Is it a bug or can it be fixed by some command?
PBSZ 0
200 PBSZ command successful.
PROT C
534 Policy requires SSL.
PROT C
534 Policy requires SSL.
***** GETFILE Error #17534: Cannot read remote file listing of /.
***** The server said: Policy requires SSL.
Hi Dolittle, yes it is a ScriptFTP bug. The most straightforward way to solve this is to change your FTP server configuration, if possible.
Has this bug been fixed? We are getting this accessing a clients FTP server and are unable to change their settings.