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

Owner: Nobody in particular
Requestors: andy [...]
hdp [...]

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

Date: Tue, 1 Jul 2003 21:24:15 -0500
To: bug-wwW-Mechanize [...]
From: Andy Lester <andy [...]>
Subject: Fwd: problem with WWW::Mechanize
Download (untitled) / with headers
text/plain 1.4k
Show quoted text
>Delivered-To: >Date: Tue, 1 Jul 2003 12:55:59 -0400 >From: Hans Dieter Pearcey <> >To: >Subject: problem with WWW::Mechanize >X-Spam-Status: No, hits=-2.5 required=6.0 > tests=USER_AGENT_MUTT > version=2.55 >X-Spam-Level: >X-Spam-Checker-Version: SpamAssassin 2.55 ( >Lines: 37 > >use WWW::Mechanize; >use Test::More 'no_plan'; >use strict; > >our $site ||= ""; >our $login ||= "login/"; > >my $a = WWW::Mechanize->new; > >my $loginurl = "https://$site/$login"; >$a->get($loginurl); > >ok ($a->success, 'login success') or exit 1; >like($a->content, qr/please log in/i, 'login content') or exit 1; > >$a->form_number(1); >$a->field(listname => ''); >$a->click("authenticating"); >#ok ($a->success, 'auth success') or exit 1; > >when run, this produces: > >% ./01_login >ok 1 - login success >ok 2 - login content >Unexpected field value at (eval 5) line 1 >1..2 ># Looks like your test died just after 2. > >do you know why that is? if I comment out the $a->click, it doesn't >give this error, but obviously then it can't proceed. > >googling didn't help; I found some people who had this error when they >were fiddling with referers that weren't plain strings, but I'm not, and >someone who had almost this exact problem, but didn't get an answer. > >hdp.
-- Andy Lester => => => AIM:petdance
I'm not getting any problem when I run it myself.

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

Please report any issues with to