Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3    Statistic    FMM    Blog  

CURL.LoadLibrary

Loads a custom CURL library.

Component Version macOS Windows Linux Server iOS SDK
CURL 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.LoadLibrary"; Path )   More

Parameters

Parameter Description Example
Path The native path to the library file.
e.g. DLL for windows, dylib for MacOS and so for Linux.

Pass emtpy path to load internal library.
"/Users/cs/Desktop/libcurl.dylib"

Result

Returns OK or error.

Description

Loads a custom CURL library.
If you need a different CURL library, e.g. one supporting HTTP/2 or Keberos authentication, you can load the native library here.

Examples

Load system CURL library on MacOS:

Show Custom Dialog [ "CURL Version before" ; MBS( "CURL.Version" ) ]

Set Variable [ $r ; Value: MBS( "CURL.LoadLibrary"; "/usr/lib/libcurl.4.dylib" ) ]
Show Custom Dialog [ "CURL loaded" ; $r ]
 
Show Custom Dialog [ "CURL Version after" ; MBS( "CURL.Version" ) ]

Load system CURL library on Linux:

Set Variable [ $r ; Value: MBS( "CURL.LoadLibrary"; "/usr/lib64/libcurl.so.4" ) ]
Show Custom Dialog [ "CURL loaded" ; $r ]

See also

Release notes

Blog Entries

Created 19th April 2020, last changed 20th April 2020


CURL.List - CURL.New

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat