Skip to content

libcURL.CookieEngine.StringValue

Andrew Lambert edited this page Nov 1, 2015 · 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: HTTP Set-Cookie header, for example: Set-Cookie: CookieName=CookieValue; domain=example.com

Either format can be passed back to libcURL by using the SetCookie method.

Clone this wiki locally