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)



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)
Subject: mirror method doesn't take a WWW::Mechanize::Link
X-RT-Original-Encoding: iso-8859-1
Content-Length: 282
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)
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)
X-RT-Original-Encoding: iso-8859-1
Content-Length: 922
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
Return-Path: <andy [...] petdance.com>
X-Original-To: bug-WWW-Mechanize [...] rt.cpan.org
Delivered-To: cpan-bug+www-mechanize [...] diesel.bestpractical.com
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 706254D806E for <bug-WWW-Mechanize [...] rt.cpan.org>; Thu, 3 Mar 2005 15:01:29 -0500 (EST)
Received: (qmail 32121 invoked by alias); 3 Mar 2005 19:58:04 -0000
X-Spam-Check-BY: la.mx.develooper.com
Received-SPF: pass (x1.develooper.com: domain of andy [...] petdance.com designates 68.164.161.90 as permitted sender)
Received: from mungo.petdance.com (HELO mungo.petdance.com) (68.164.161.90) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 11:58:00 -0800
Received: by mungo.petdance.com (Postfix, from userid 500) id C516B237021; Thu, 3 Mar 2005 13:57:56 -0600 (CST)
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
Message-ID: <20050303195756.GA9177 [...] petdance.com>
References: <rt-11737 [...] cpan> <rt-11737-33801.8.33151722403521 [...] cpan.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <rt-11737-33801.8.33151722403521 [...] cpan.org>
User-Agent: Mutt/1.4.2i
RT-Send-Cc:
X-RT-Original-Encoding: us-ascii
Content-Length: 604
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.