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

People
Owner: Nobody in particular
Requestors: stuart [...] terminus.co.uk
Cc:
AdminCc:

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



Subject: uri should be set after a request rather than before
Mechanize's uri() method returns the value of the uri variable. The variable is currently set *before* requests are made - eg: in get(), click(), submit(). This may result in uri() returning a value that does not match the page the agent is actually on. This can happen in two ways. Firstly, the request may fail. Secondly, the request may result in one or more redirections. So, we should instead set the uri variable *after* the requests are completed.
Good idea. thanks. It's in 0.46, which I just uploaded.