in reply to Re: POSTing information on a web pagein thread POSTing information on a web page
... or just use WWW::Mechanize, which also does the cookie handling transparently.