-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.CookieEngine.StringValue
Andrew Lambert edited this page May 2, 2016
·
7 revisions
#libcURL.CookieEngine.StringValue
##Method Signature
Function StringValue(Index As Integer, StringFormat As Integer = libcURL.CookieEngine.FORMAT_NETSCAPE) As String##Parameters
| Name | Type | Comment |
|---|---|---|
| Index | Integer | The index of the cookie to get. The first cookie is at Index 0
|
| StringFormat | Integer | Optional. The format of the returned string. |
##Return value
Returns the string value of the cookie at Index using the format specified by StringFormat. Currently supported formats are:
-
FORMAT_NETSCAPE: Netscape cookiejar, for example:.example.com[TAB]TRUE[TAB]/[TAB]FALSE[TAB]1441870730[TAB]CookieName[TAB]CookieValue -
FORMAT_HTTP: HTTPSet-Cookieheader, for example:Set-Cookie: CookieName=CookieValue; domain=example.com
Either format can be passed back to libcURL by using the SetCookie method.
##Remarks
If you attempt to access an Index that is not present in the list, an OutOfBoundsException will be raised. If there are no cookies in the list or the CookieEngine is not enabled, then a NilObjectException will be raised. If you specify an unknown StringFormat then an UnsupportedFormatException will be raised.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-26 Andrew Lambert, offered under the CC BY-SA 3.0 License.