Skip to content

libcURL.MultiHandle.SetOption

Andrew Lambert edited this page Mar 16, 2017 · 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 option number to be updated
NewValue Variant The new value for the cURL option number

Return value

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

Remarks

Calls curl_multi_setopt.

SetOption accepts a Variant as the option value, 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