Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  

CURL.LoadLibrary

Loads a custom CURL library.

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

Parameters

Parameter Description Example value
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

Blog Entries

Release notes

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


CURL.List   -   CURL.New

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos