On Tue, 1 Mar 2005, Andrea Setti wrote: > Thank you for the answer. > > I had a look th WWW::Mechanize and it does almost everything that i need. > > The only thing i cannot understand is: how can i forward the cookie to the > real browser? > I need to fetch it from the real login page and then forward it to the > referrer... [...]
You don't have to forward the cookies explicitly -- it's all done under the covers automatically. You just have to make sure it's switched on. I don't recall if cookie handling is on by default in mechanize, though. I would imagine so, but don't trust me: read the docs. John