Skip to content

libcURL.IsAvailable

Andrew Lambert edited this page Sep 17, 2015 · 19 revisions

#libcURL.IsAvailable

##Method Signature

 Protected Function IsAvailable() As Boolean

##Notes Returns True if libcURL is available at runtime. If libcURL (or a library it depends upon) is not available or does not meet the minimum version then this method returns False.

##Minimum version The minimum supported version of libcURL is 7.15.2; the recommended minimum version is 7.21.7. Versions prior to 7.21.7 will function with degraded features, but versions prior to 7.15.2 will not function properly at all.

Features known to have been introduced after 7.15.2 are protected by calls to libcURL.Version.IsAtLeast; a failed version check will raise an exception with error number libcURL.Errors.FEATURE_UNAVAILABLE when the feature is first accessed.

##Why 7.15.2? Versions prior to 7.15.2 require that the global initialization and cleanup functions are called exactly once each. Later versions allow multiple calls, provided that for every initialization there is a matching cleanup.

This project aims to minimize the number of calls to these functions as much as possible, but it does not guarantee that they are called only once each.

##See also

Clone this wiki locally