libcURL.cURLSession.GetOption - charonn0/RB-libcURL GitHub Wiki
libcURL.cURLSession.GetOption
Method Signature
Function GetOption(OptionNumber As Integer, DefaultValue As Variant = Nil) As Variant
Parameters
| Name | Type | Comment |
|---|---|---|
| OptionNumber | Integer | The libcURL option value to look up. |
| DefaultValue | Variant | Optional. If the option has not been set, this value is returned. |
Return value
Returns a Variant suitable to contain the option value requested.
Remarks
This method complements the SetOption method. You can use this method to retrieve any previously-set option value. If the OptionNumber has not been set then the DefaultValue parameter is returned.
This method cannot retrieve option values which were set using the SetOptionPtr method.
See also
- libcURL.Opts module containing option number constants
- OptionInfo class
- OptionIterator class