Skip to content

libcURL.MultiHandle.SetOption

Andrew Lambert edited this page Jan 16, 2023 · 10 revisions

libcURL.MultiHandle.SetOption

Method Signature

 Function SetOption(OptionNumber As Integer, NewValue As Variant) As Boolean

Parameters

Name Type Comment
OptionNumber Integer The cURL_multi option number to be updated
NewValue Variant The new value for the option number

Return value

Returns True if the operation succeeded. Check MultiHandle.LastError for the error number if this method returns False.

Remarks

Calls curl_multi_setopt.

This method accepts a Variant as the NewValue, but only Booleans, Integers, Ptrs, Strings and MemoryBlocks should be used.

Setting an option value to an unsupported type will raise a TypeMismatchException.

Setting an option that does not allow NULL to Nil will raise a NilObjectException.

See also

Clone this wiki locally