Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 2559
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: david [...] carter.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
To: bug-WWW-Mechanize [...] rt.cpan.org
From: david [...] carter.net
Subject: Re: [cpan #2559] AutoReply: Enhancement: pass an LWP::UserAgent to WWW::Mechanize constructor?
Date: Mon, 12 May 2003 12:37:50 -0700 (PDT)
RT-Send-Cc:
My apologies. I should have looked at the code first. It didn't occur to me that Mechanize *IS* an LWP::UserAgent. -David Carter david@carter.net
No problem. Please let me know if you have any other ideas....