Lists all cookies out of the cookie database and writes them to the output file. This BDL function is implemented in WebAPI.bdh.
WebAPI.bdh
WebCookieList(in nOptions : number optional);
Parameter | Description |
---|---|
nOptions |
(optional)
|
// This function shows how to list cookies stored // in the cookie database dclfunc function WebCookieList(nOptions : number optional) const MAX_COOKIE_BUF := 4096; var bCookie : boolean; sCookieBuffer : string(MAX_COOKIE_BUF); begin write("------ cookie database ------"); writeln; bCookie := WebCookieListFirst(sCookieBuffer, MAX_COOKIE_BUF, nOptions); while bCookie do write(sCookieBuffer); writeln; bCookie := WebCookieListNext(sCookieBuffer, MAX_COOKIE_BUF, nOptions); end; end WebCookieList;