SyntaxBomb - Indie Coders
Languages & Coding => BlitzMax / BlitzMax NG => Brucey's Modules => Topic started by: Midimaster on February 13, 2021, 07:57:34
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
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
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:
(https://www.syntaxbomb.com/gallery/8445_13_02_21_7_31_16.png)
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