Sunday, August 2, 2009

Classic ASP script needs to upload CSV file to remote SFTP server?

I have a classic ASP script that builds a CSV file and needs to save it to a remote SFTP (explicit over tsl/ssl). Can anyone suggest any components/dlls or a way of doing this? Thank you

Classic ASP script needs to upload CSV file to remote SFTP server?
hmmm good question,, im guessing ur on a windows machine,,, on linux in the conf file openSSL you point out ur binary for ftp and from there u can create the tunnel using ssh, i do know there is a version of OpenSSL on windows however not sure how expandable and friendly it will be,,, if it's a script however any command line ftp client capable of creating a secure conenction to s/ftp daemon should suffice,, i'd google it =) ...by the way,, i'd call this a suggestion as a pose to an answer,, prolly someone out here with a way better one =)
Reply:Yes, I'm not sure about this either.





In ASP.NET there's a whole zoo of classes and methods to do FTP transfers, handle certificates, etc, but in Classic ASP there's a bit of a void when it comes to 'internet protocols' - just the HTTP Request and Response objects - because ASP was only really built to make web pages 'more' dynamic than they were with htx templates.





You would need to create an 'FTP' client of some kind which issues the open and copy commands, but I do not recall ever a DLL/Component to do this.





A 'fix' might just be to create an FTP script that does the transfer.


No comments:

Post a Comment