Example: web.save_header

In the following segment, the web.save_headerfunction first saves the HTML response header that the browser receives when it accesses the cookie.html page. The header is saved to the parameter "response header." When the script accesses "dogbert," the save_header function then saves the HTML response header that the browser receives from dogbert. This header replaces the previous value saved to "response header."

try
{
web.save_header(web.RESPONSE,
    "response header");
web.url("cookie.html",
     "URL=http://www.RosingsPark.com/cookie.html",
     new String []{
         "TargetFrame=_TOP",
         web.LAST
     });
web.url("dogbert",
     "URL=http://dogbert/",
     new String []{
         "TargetFrame=_TOP",
         web.LAST
     });
}
catch (Exception e) {}