Skip to content

libcURL.EasyHandle.SetOptionPtr

Andrew Lambert edited this page Nov 26, 2022 · 14 revisions

libcURL.EasyHandle.SetOptionPtr

Method Signature

 Function SetOptionPtr(OptionNumber As Integer, NewValue As Ptr) As Boolean

Parameters

Name Type Comment
OptionNumber Integer A cURL option number
NewValue Ptr (see remarks) The new value for the option

Return value

If the option was set this method returns True. If it returns False the option was not set and the curl error number is stored in EasyHandle.LastError.

Remarks

Call this method with a curl option number and a Ptr to a representation of the new value for that option. The Ptr is passed verbatim to libcURL. You may use this method if you want to bypass the automatic marshalling done by the SetOption() method.

See also

Clone this wiki locally