Differences

This shows you the differences between the selected revisions of the page.

library_perl 2016-01-22 library_perl 2022-06-16 (current)
Line 1: Line 1:
====== Using WinSCP .NET Assembly from Perl (ActivePerl) ====== ====== Using WinSCP .NET Assembly from Perl (ActivePerl) ======
-//This article is based on [[http://www.activestate.com/activeperl|ActivePerl]] Perl distribution.//+//This article is based on [[https://www.activestate.com/products/perl/|ActivePerl]] Perl distribution.//
===== Installing and Registering for COM ===== ===== Installing and Registering for COM =====
Line 33: Line 33:
$sessionOptions->{'UserName'} = 'user'; $sessionOptions->{'UserName'} = 'user';
$sessionOptions->{'Password'} = 'mypassword'; $sessionOptions->{'Password'} = 'mypassword';
-$sessionOptions->{'SshHostKeyFingerprint'} = 'ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx';+$sessionOptions->{'SshHostKeyFingerprint'} = 'ssh-rsa 2048 xxxxxxxxxxx...';
</code> </code>
-==== Event Handlers ====+==== [[event_handlers]] Event Handlers ====
The ''[[library_session|Session]]'' class exposes several [[library_session#events|events]]. The ''[[library_session|Session]]'' class exposes several [[library_session#events|events]].
Line 80: Line 80:
</code> </code>
-===== Example =====+===== [[example]] Example =====
This example is functionally equivalent to [[library#example|overall C# example for WinSCP .NET assembly]]. This example is functionally equivalent to [[library#example|overall C# example for WinSCP .NET assembly]].
Line 109: Line 109:
$sessionOptions->{'UserName'} = 'user'; $sessionOptions->{'UserName'} = 'user';
$sessionOptions->{'Password'} = 'mypassword'; $sessionOptions->{'Password'} = 'mypassword';
-$sessionOptions->{'SshHostKeyFingerprint'} = 'ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx';+$sessionOptions->{'SshHostKeyFingerprint'} = 'ssh-rsa 2048 xxxxxxxxxxx...';
# Connect # Connect
Line 118: Line 118:
$transferOptions->{'TransferMode'} = $consts->{'TransferMode_Binary'}; $transferOptions->{'TransferMode'} = $consts->{'TransferMode_Binary'};
-my $transferResult = $session->PutFiles('d:\\toupload\\*', '/home/user/', FALSE, $transferOptions);+my $transferResult = 
 + ···$session->PutFiles('d:\\toupload\\*', '/home/user/', FALSE, $transferOptions);
# Throw on any error # Throw on any error

Last modified: by martin