Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2026-09

How do I use libcurl in order to access sftp server?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I have an FPC/Lazarus application that interfaces to a website in order to update user logins and customer accessible files etc. It is written 10+ years ago and uses Indy to connect through ftp to the server and read/write files.

Now I need to update it to get it to work with sftp since the webhost is ending use of plain ftp (for security reasons). And Indy does not support the sftp protocol apparently.

It has been suggested that FreePascal supports curl through an included libcurl package and I want to know if that could be used... And I don't know how to actually use libcurl...

So is there some example somewhere on how to actually do that?

My application is used by our production and support people...

TIA

Bo Berglund Developer in Sweden

Reply by email