HttpObjectGetCookieValues
Full Description
swirl
Syntax
  define function HttpObjectGetCookieValues
              read-only   stream   HttpObject
     into     modifiable  stream   CookieValues


Purpose

This function returns the names and values of all the defined cookies for the HTTP request or response object. The values are returned in the stream argument as keyed items on the shelf. Usually, HttpObjectGetCookieValues is part of a server program.

Input argument:

  • "HttpObject" -- an HTTP request or HTTP response object.

Output argument:

  • "Cookies" -- a stream shelf containing the cookie values as keyed items. The contents of the shelf are cleared before the cookie values are copied to it. The item key is the cookie name.

Example:

  ; HttpObjectGetCookieValues

  local HttpRequest my-Request
  local HttpResponse my-Response
  local stream request-Cookies
  local stream response-Cookies

  HttpObjectGetCookieValues my-Request into request-Cookies
  HttpObjectGetCookieValues my-Response into response-Cookies

  repeat over request-Cookies
     output "%g(request-Cookies)%n"
  again
  repeat over response-Cookies
     output "%g(response-Cookies)%n"
  again

Copyright © OmniMark Technologies Corporation, 1988-1998.