If anyone has any good book or webpage they like on TclCurl that would be appreciated as well.
I have found way to many web pages and most of them all deal with HTTP: stuff. Very little I have found so far on just doing a simple FTP SFTP kind of thing.
Just google TCLCurl and SFTP and you should be able to get some answers.
I did a terse search and found that SFTP is supported and that you need SSH libraries. You will need to figure out what all this means, but it should be a start. One other person warned that SFTP is not FTPS, so beware.
I managed to get a SFTP connection but couldn’t get any further because I didn’t have the right libraries for SSH etc – This was on Windows. So yes it does work if you can get all the necessary libraries installed.
I just replaced the HTTP call with SFTP and added a few more SSH parameters in – See the Curl/TclCurl documentation for thses. I’ll check to see if I still have my test code but I don’t think I kept it. See below.
On Windows I used WinSCP and called a SFTP script from Tcl. This works fine for me.
If you download the full TclCurl package from the TclCurl site there are example files included – I used the FTP examples as my templates and got a part working script.
For those of you that care or are intrested in this.
The currently supplied version of TclCurl with cloverleaf 5.5. does not support SFTP it does support FTPS. I have not confirmed yet if the next version 5.6 comes with the version of curl that supports SFTP or not.
I do not want to speak for Healthvision but everything I have seen and heard is that Cloverleaf(R) will support FTPS not SFTP. I think that is true for 5.6. At the Regional User Conference last week in Indianapolis, I do not recall any mention of support for SFTP.
I do not know if that extends to the TclCurl extension included with Cloverleaf(R).
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.
The full TclCURL package does support SFTP but for me as a Windows user I didn’t have all the supporting libraries available to me (SSH etc) in a usable form but I did manage to establish a connection. On a *nix system where the libraries may already be built in or readily available I would have thought an SFTP script could be written using TclCUrl.
John – I’d be interested to hear how successful you are with this.
Just to add my $0.02 – I have not been able to get SFTP to work with cURL/TclCurl (any version). It claims support but I just could not get it to work. I tried for a couple hours and gave up. This is on a Windows platform.
I ended up using WinSCP which works quite well. I was able to call a WinSCP script from a protocol UPoC.
If anyone is able to get this to work I would be interested to hear.
Please note we provide cURL/TclCurl as a convenience and do not claim to support all of it’s features (exceptions are built-in drivers such as FTPS which uses cURL under the covers). I have used the TclCurl HTTP client functionality extensively, it’s pretty bulletproof in my opinion.
Rob Abbott
Cloverleaf Emeritus
Author
Replies
Viewing 9 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.