Answered question

How could I connect to an FTPS server using a javascript?

For my load testing, I have a need for my virtual users to connect to a ftpS server and put some files.

I saw this helps http://answers.neotys.com/questions/19533-how-could-i-connect-to-an-ftp-server-using-a-javascript , but is based on the FTP class, I need to do with ftpSclient () , you could help me with this ?.

at this time I get this response 500 Illegal PORT command .

thanks.

Carlos Darío S.
Carlos Darío S.

Carlos Darío S.

Level
0
15 / 100
points

It can easily be done by loading the package FTPSClient instead of FTPClient in the link you provided.

So for instance use "myFTPClient =new Packages.org.apache.commons.net.ftp.FTPSClient();"

The same methods are working for FTPClient and FTPSClient.

For more information you can check that link

Did you find this useful ?

No (0)

Yes (1)

100%

100% of users found this answer useful