Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Curl queue info (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Can I use packetSocketMBS for large files ?
Next thread: [MBS] WindowsMidiMBS - "Application has encountered a problem" when compiled with RS2012


Re: [MBS] Writing to /Library/Preferences in Lion   -   Garth Hjelte
  [MBS] Curl queue info   -   Sergio Tamborini
   Re: [MBS] Curl queue info   -   Christian Schmitz

[MBS] Curl queue info
Date: 29.04.13 16:45 (Mon, 29 Apr 2013 17:45:41 +0200)
From: Sergio Tamborini
Hello!
Is possible to manage an upload (via ftp) queue with curl? I made a solution that use curl to upload files on an ftp server and my customer has to upload 15-20000 files at time... I see in the server log that curl open-auth-upload-close connection every file.

Here my method (called for every file :( )

Private Sub UploadFiles(DocToUpload As String)
dim e as integer
dim d as UploadCURL
dim b as BinaryStream
dim f As FolderItem

f=SpecialFolder.Desktop
b=f.Child(DocToUpload).OpenAsBinaryFile(false)

d=new UploadCURL 'as curlsmbs
d.stream=b
d.OptionURL=StringConnectToServer+StringServerPath+DocToUpload
d.OptionUpload=true
d.OptionInFileSize=b.Length

e=d.Perform
End Sub

Many thanks!

------

Sergio Tamborini
Brescia
http://www.system-i.it

"C'è un equivoco di fondo. Si dice che il politico che ha avuto frequentazioni mafiose, se non viene giudicato colpevole dalla magistratura, è un uomo onesto. No! La magistratura può fare solo accertamenti di carattere giudiziale. Le istituzioni hanno il dovere di estromettere gli uomini politici vicini alla mafia, per essere oneste e apparire tali"

"There is a basic misunderstanding. It is said that political mafia has had acquaintances, if not found guilty by the courts, is an honest man. No. The judiciary can only do the findings of a judicial nature. Institutions have a duty to oust politicians close to the mafia, to be honest, these look "

Paolo Borsellino

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Curl queue info
Date: 29.04.13 16:50 (Mon, 29 Apr 2013 17:50:45 +0200)
From: Christian Schmitz

Am 29.04.2013 um 17:45 schrieb Sergio Tamborini <<email address removed>>:

> Hello!
> Is possible to manage an upload (via ftp) queue with curl? I made a solution that use curl to upload files on an ftp server and my customer has to upload 15-20000 files at time... I see in the server log that curl open-auth-upload-close connection every file.

You set OptionForbitReuse = false and OptionFreshConnect = false to have it reuse connections?

Greetings
Christian