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

People
Owner: Nobody in particular
Requestors: radmin [...] comcast.net
Cc:
AdminCc:

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



Subject: undefined value after malformed URL
Perl 5.8.1 on OS/X Client 10.3.5 WWW:Mechanize 1.02 (all components freshened). When the Mechanize instance is passed a URL without the absolute http:// prefix, it reports an error 400 URL must be absolute. So far so good. But when this is repeated a second time, instead of the same error, it fails with Can't use an undefined value as a HASH reference at /Library/Perl/5.8.1/LWP/UserAgent.pm line 655. It should return the same error 400, not a fatal error. Two instances were open at the same time during this error, but I have no idea if that influenced anything.
Without the http:// it thinks it's a relative URL. Since you have failure the first time, you can't have a relative URL based on something with no current page.