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: 11737
Status: rejected
Priority: 0/
Queue: WWW-Mechanize

People
Owner: MARKSTOS [...] cpan.org
Requestors: juanmarcosmoren [...] terra.es
Cc:
AdminCc:

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



Subject: mirror method doesn't take a WWW::Mechanize::Link
Download (untitled) / with headers
text/plain 282b
When doing something like: $agent->mirror($agent->find_link(text => 'Download'), 'myfile'); LWP says it doesn't accept WWW::Mechanize::Link should this be fixed? Why do we need to use a WWW::Mechanize::Link object? Aren't there other more standard Link objects out there? (like URI)
Download (untitled) / with headers
text/plain 922b
[guest - Thu Mar 3 14:15:09 2005]: Show quoted text
> When doing something like: > $agent->mirror($agent->find_link(text => 'Download'), 'myfile'); > LWP says it doesn't accept WWW::Mechanize::Link > should this be fixed?
That's up to the LWP people. You're in the wrong bug queue for that. Show quoted text
> Why do we need to use a WWW::Mechanize::Link object?
It's worked well so far. Show quoted text
> Aren't there other more standard Link objects out there? (like URI)
If you compare the docs for the two objects, they work in different niches. Besides, I would guess this all you need to fix your situation: $agent->mirror($agent->find_link(text => 'Download')->url(), 'myfile'); That doesn't seem so bad. I'm resolving this ticket because it's either a wishlist for LWP, or a question about how Mech works. There is a Mech developer's e-mail list if you are want to further discuss the future of how Mech works. LWP has a list as well. Mark
Date: Thu, 3 Mar 2005 13:57:56 -0600
From: Andy Lester <andy [...] petdance.com>
To: Guest via RT <bug-WWW-Mechanize [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #11737] mirror method doesn't take a WWW::Mechanize::Link
RT-Send-Cc:
Download (untitled) / with headers
text/plain 604b
On Thu, Mar 03, 2005 at 02:15:09PM -0500, Guest via RT (bug-WWW-Mechanize@rt.cpan.org) wrote: Show quoted text
> When doing something like: > $agent->mirror($agent->find_link(text => 'Download'), 'myfile'); > LWP says it doesn't accept WWW::Mechanize::Link > should this be fixed?
No, because LWP doesn't know about Mech at all, now will it ever. Show quoted text
> Why do we need to use a WWW::Mechanize::Link object? Aren't there other more standard Link objects out there? (like URI)
Look at the methods in WWW::Mechanize::Link and answer for yourself. xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.