Forum OpenACS Q&A: Response to Stupid Aolserver trick with ns_httpget and lynx cookies

Is there an approach that doesn't require altering any files?  Requiring a hacked http.tcl would render my file useless:

I'm working on a smoke-test page to be included with a module.  It tries to reach and and access each page, posting forms and whatnot, using util_httpget and util_httppost.  It then parses the results.  It dies as soon as it hits a page that requires cookies.  Is there a way to get the necessary information from the parent page (smoke-test.tcl, the page which hosts the util_httpget commands) and then includes that in the httpget?  It looks like I just need to give util_httpget a header argument like "Cookie: ad_session_id = foo".  Is this right?  If so, can I get or derive foo?