cURL / Mailing Lists / curl-library / Single Mail

curl-library

Generally questions about curl

From: <gfa_at_trainzland.com>
Date: Sat, 13 Jul 2013 13:16:45 +0200

Hi everyone,

I read about the curl lib and that exactly what I require. But I'm
confused about the different ways the samples are realized.

1) Some examples talking about "creating a text file" a commit to an
exe. (Sending/receive a file to a ftp server)
2) Other examples using direct code to send (Send a file to a ftp server)

I must working with (GFABasic32) GB32 Rapid Development Language and the
ftp4w32.dll (file transfer dll ) in Win7/8 in asynchronous mode currently.
GB32 is able to include DLLs into the project code, but its not possible
to bind #include <curl/multi.h> stuff.

An easy code snippet in GB32 -send a file-.
Declare LIB "ftp4w32.DLL"

Declare Function FtpLogin(ByVal Host As String, ByVal User As String,
ByVal Password As String, ByVal HWND As Integer, ByVal msge As Integer)
As Integer
Declare Function FtpSendFile(ByVal Lcl As String, ByVal ....) As Integer
Declare Function FtpRenameFile(ByVal Remote As String, ByVal RemoteTO As
String) As Integer
.....
FTP_Err = FtpLogin(Ftp, Usr, Pw, FormHwnd, ...)
FTP_Err = FtpSendFile(Lcl_FileName, SV_FileName, Typ, Notify, ByRef HWND
, ByRef msge )
If FTP_Err = 0
   /* Well Done */
Else
   /* Error while send a file */
   MsgBox "Remote file error (FtpSendFile) " & FTP_Err
EndIf

FTP_Err = FTP_LocalClose()

Does anyone know and how I to use the curl-lib in this way like the
older VB5 would does?
During security reason I want to use the SFTP() functionality of the
curl-lib.

Thank you and kind regards
Roger

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-13