A
AJ
I can't seem to get a file to "put" onto an FTP server. I can "get"
files without issue. I don't receive any errors from my last print
statement below (I just get "transferred failed []"). I have gone to
specifying a test file by name instead of a variable, still no luck.
Anyone have any insights?
Here is the code:
use Win32::Internet;
$inet = new Win32::Internet();
$inet->FTP($MYFTPSRV, "ftpsrv", "ftpuser", "ftppassword");
if ($MYFTPSRV->Cd("/FromHost")) {
print "cd sucess\n";
if ($MYFTPSRV->Put("c:/temp/testfile.tst")){
print "put success\n";
} else { print "transfer failed [$@]\n";
}
}
$inet->Close($MYFTPSRV);
Thanks,
--AJ
files without issue. I don't receive any errors from my last print
statement below (I just get "transferred failed []"). I have gone to
specifying a test file by name instead of a variable, still no luck.
Anyone have any insights?
Here is the code:
use Win32::Internet;
$inet = new Win32::Internet();
$inet->FTP($MYFTPSRV, "ftpsrv", "ftpuser", "ftppassword");
if ($MYFTPSRV->Cd("/FromHost")) {
print "cd sucess\n";
if ($MYFTPSRV->Put("c:/temp/testfile.tst")){
print "put success\n";
} else { print "transfer failed [$@]\n";
}
}
$inet->Close($MYFTPSRV);
Thanks,
--AJ