in reply to Seeking a wise way to pass a cookie on a POST request

Assuming you are using LWP (and if you aren't, why not?) you can set a cookie_jar option. see the LWP documentation for more details
  • Comment on Re: Seeking a wise way to pass a cookie on a POST request