Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML::Parser and Cookies

Status
Not open for further replies.

CherylD

Programmer
May 1, 2001
107
CA
I'm using the HTML::parser module and everything is the way that I want it. What I want to do is set a temporary cookie before parsing the html page. Any suggestions on how to do this?

Here is what I am trying to do (which doesn't work):
print header(
-cookie=>cookie(-name=>"keygen", -value=>$r[2], -expires=>$cookiedate, -path=>"/"),
);
$p=HTML::parser->new(api_version => 3);
$p->parse($html);

If instead of parsing the html, I redirect to another page, the temp cookie is set.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top