http://qs321.pair.com?node_id=10977

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

My client send GET request to server, server returns Set-cookie: blah blah how do I send a decline or accept back to server so I can get the page I wanted?

Originally posted as a Categorized Question.

  • Comment on How can my script accept or decline a cookie?

Replies are listed 'Best First'.
Re: How can my script accept or decline a cookie?
by merlyn (Sage) on May 11, 2000 at 01:13 UTC
    It should be returning both the page and the cookie. If it's not yet returning the page, it's probably wanting you to remember the cookie, and "click another link".

    The LWP package can hold "cookie jars" to automatically send back previously noted cookies. See perldoc lwpcook after installing LWP.