To: | bug-WWW-Mechanize [...] rt.cpan.org |
From: | david [...] carter.net |
Subject: | Enhancement: pass an LWP::UserAgent to WWW::Mechanize constructor? |
Date: | Mon, 12 May 2003 10:30:13 -0700 (PDT) |
I'd like to see WWW::Mechanize->new accept an
LWP::UserAgent (more specifically, a subclass of
UserAgent) as a parameter.
In automating interactions with many e-commerce
applications, I currently use a UserAgent subclass that
"properly" handles a redirect returned from a POST by
sending the new request as a GET. I'd like to switch
over to using Mechanize, but need a way to have
Mechanize use my UserAgent subclass, so it would
inherit my UserAgent's customized behavior.
I haven't dug into the Mechanize code yet to determine
how difficult this would be.
Any suggestions?
Thanks,
David Carter
david@carter.net