HelpWizard Pages Protocols FTP/en: Unterschied zwischen den Versionen
Cg (Diskussion | Beiträge) |
Cg (Diskussion | Beiträge) |
||
Zeile 20: | Zeile 20: | ||
Then add an "FTP [ Close ]" action to the diagram and connect the "ftp-link" output from the connect action to the corresponding input pin of the close action. |
Then add an "FTP [ Close ]" action to the diagram and connect the "ftp-link" output from the connect action to the corresponding input pin of the close action. |
||
<br>(click the right arrow to see the resulting diagram) |
|||
[[Category: HelpWizard]] |
[[Category: HelpWizard]] |
Version vom 18. Februar 2022, 11:33 Uhr
Protocols - FTP
FTP access can be implemented in two ways:
- by setting up a connection, issuing multiple requests (Get, Put or List) and then closing the connection.
- by using one of the combined Get/Put actions
The first scheme is better if you have to perform multiple operations against the ftp server. The combined actions are better if a single file or a small number of files are to be transferred.
As a first example, create a new compound action, and drag (or copy-paste) the
"FTP [Connect]
" action block
from the standard library into it (you will find it easily via the tree's "Search" tab, where you can type "ftp
" into its text field).
Freeze the "user" and "password" input pins (by double clicking on the pin); most public ftp servers will accept "guest" as user and "anonymous" as password.
Also provide a value for the hostname input pin (eg. as "ftp.somehost.org").
Then add an "FTP [ Close ]" action to the diagram and connect the "ftp-link" output from the connect action to the corresponding input pin of the close action.
(click the right arrow to see the resulting diagram)