in reply to Re^7: Cookie->fetch problem
in thread Cookie->fetch problem

The redirect call threw me, i guess cuz it didnt have a text uri or a -uri=> section. So i ran it, and it all became clear. Ill remember that "trick" now.

Then in researching it http://perldoc.perl.org/CGI.html#GENERATING-A-REDIRECTION-HEADER i found "All names arguments recognized by header() are also recognized by redirect(). However, most HTTP headers, including those generated by -cookie and -target, are ignored by the browser.". but mine (firefox51) didnt ignore the -cookie => $cookie part.

Replies are listed 'Best First'.
Re^9: Cookie->fetch problem
by Anonymous Monk on Mar 12, 2017 at 04:32 UTC

    However, most HTTP headers, including those generated by -cookie and -target, are ignored by the browser.". but mine (firefox51) didnt ignore the -cookie => $cookie part.

    General statements like that may have been true more than 20 years ago when CGI.pm first appeared

    The documentation is gigantic and not maintained , for anyone who wants to learn HTTP should learn from the RFC