BaH.libcurl.mod and BlitzMax NG

Started by Midimaster, February 13, 2021, 07:57:34

Previous topic - Next topic

Midimaster

It looks like the Bah.libcurl.mod should be revised... Here my report of adding it to BlitzMax NG. Perhaps it will help future people to get it started more comfortable:

1. Bah.libcurl.mod needs some other modules. But there is no ReadMe to inform about that. So you additional need to copy Bah.libssh2.mod and Bah.mbedtls.mod to the BlitzMax.mod.Bah-Folder.

2. Some examples are not longer working. Somebody should update them:

Example 2
Code (BlitzMax) Select
curl.setProgressCallback(progressCallback) ' set the progress callback function
fails with the error message:
Compile Error: Unable to convert from Int(Object,Double,Double,Double,Double) to Int(Object,Long,Long,Long,Long).



Example 3
Code (BlitzMax) Select
curl.setOptString(CURLOPT_URL, "ftp.sunsite.dk/pub/")
fails with the error message:
***** Couldn't resolve host name *****

Example 5

fails with the error message:
*********************************************
SSL peer certificate or SSH remote key was not OK
*********************************************
SSL peer certificate or SSH remote key was not OK




Example 8
runs as expected but has this error message as a message box:








...back from Egypt

Derron

Linux also requires the installation of "libidn11-dev".



Regarding the last example:
curl.setOptInt(CURLOPT_VERBOSE, 1)

-> remove that and the error is "gone".


bye
Ron