libcurl.pbi

Share your advanced PureBasic knowledge/code with the community.
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: libcurl.pbi

Post by Kukulkan »

Looks like curl_mime_data_cb() (link) and a matching callback reader are missing? How do you guys send emails with attachments from memory then? I don't like to save the file first to later use curl_mime_filedata() and then wipe it.

Anyone already implemented that?

UPDATE:
I added the declarations by myself. Never mind.
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: libcurl.pbi

Post by infratec »

Updated libcurl to 8.12.1

Added example EMailWithFileAttachmentFromMemory.pb
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: libcurl.pbi

Post by Kukulkan »

Thank you! :D
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: libcurl.pbi

Post by infratec »

Updated libcurl to 8.13.0

Added websocket procedures and an example:

WSS_simple_echo.pb

WebSocket client is only possible with

Code: Select all

#LibCurl_ExternalDLL = #True
XIncludeFile "libcurl.pbi"
https://curl.se/libcurl/c/libcurl-ws.html
Quin
Addict
Addict
Posts: 1127
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: libcurl.pbi

Post by Quin »

Incredibly cool, thanks for sharing as always!
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: libcurl.pbi

Post by infratec »

Fixed a bug in FTPS_dir.pb:

If the directory is empty, an IMA at address 0 happened.

Libcurl never enters the write function and so no memory was allocated.
The memory is checked now.
Quin
Addict
Addict
Posts: 1127
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: libcurl.pbi

Post by Quin »

Bug fix confirmed, thanks Infratec!
Thanks so much for all your libcurl work, I use it in all my applications now, one of them over 10K LOC, and it works amazingly.
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: libcurl.pbi

Post by infratec »

@Quin: Thank you for your kind words.

Fixed a bug in the example DownloadProgress.pb
I missed a CloseFile() in the DownLoadWithXferInfo() procedure.
Thanks to Wolfram, this is fixed now.
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: libcurl.pbi

Post by infratec »

Updated libcurl to 8.14.1
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: libcurl.pbi

Post by infratec »

Added examples:

FTP_mkdir.pb
FTP_rmdir.pb
infratec
Always Here
Always Here
Posts: 7582
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: libcurl.pbi

Post by infratec »

Updated libcurl to 8.15.0
Quin
Addict
Addict
Posts: 1127
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: libcurl.pbi

Post by Quin »

Woot, thanks!
Post Reply