![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||||
|
|
|||||
| function | HttpObjectGetCookieAttributes | ||||
| Other Library Functions |
|
Library: HTTP
Include: omtcp.xin, omhttp.xin |
define function HttpObjectGetCookieAttributes
read-only stream HttpObject
for value stream CookieName
into modifiable stream CookieAttrs
This function returns the names and values of all attributes for the specified cookie in the HTTP request or response object. The values are returned in the stream argument as keyed items on the shelf. Usually, HttpObjectGetCookieAttributes is called in server programs.
Input arguments:
Output arguments:
Example:
; HttpObjectGetCookieAttributes
local HttpRequest my-Request
local HttpResponse my-Response
local stream request-CookieAttrs
local stream response-CookieAttrs
HttpObjectGetCookieAttributes my-Request
for "DocUserId" into request-CookieAttrs
HttpObjectGetCookieAttributes my-Response
for "DocUserId" into response-CookieAttrs
repeat over request-CookieAttrs
output "%g(request-CookieAttrs)%n"
again
repeat over response-CookieAttrs
output "%g(response-CookieAttrs)%n"
again
| ---- |