Using the FTPSession Bean | API Documentation |
Use the FTPSession bean to transfer files to or from a file server using the file transfer protocol (FTP).
To use an FTPSession bean within the WebRunner Bean Tester, first select the FTPSession bean in the bean palette and add it to the Bean Tester working area. Then press the Customize... button at the bottom of the properties window to bring up the customizer:
To establish an FTP session, logon to an FTP server by filling out the Server, User, and Password fields in the customizer Preferences box. You can also optionally specify an Account. Press the Apply button to logon to the server.
After you have connected to an FTP server you can use the customizer to execute typical FTP commands, including creating and removing directories on the server, moving between directories, and transferring files to or from the server. To execute a command, select the command in the drop-down list, fill in the data required for the command, and press the Apply button. The customizer data fields include:
For example, to transfer the file /test/log.txt from the server to a file named logfile.txt in your local directory:
Note: The Properties list also shows the sustainedSession property that you can assign the values True or False. By default this property is always set to True, meaning that your session is sustained (your connection to the specified server is maintained) until you press the Quit Session button on the customizer.
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.