Hello,<br>I have a login form on /login.php which POSTs to /dorf1.php when access is granted and to /login.php when it is denied.<br><br>require 'rubygems'<br>require 'mechanize'<br>agent = WWW:Mechanize.new
()<br>login = agent.get("<a href="http://server/login.php">http://server/login.php</a>")<br>form = login.forms.action("dorf1.php")<br>form.fields[2].value = "wronguser" # login<br>form.fields
[3].value = "wrongpass" # password<br>dorf1 = form.submit()<br>dorf1.uri<br> # => #<URI::HTTP:0x15af2e04dc7c URL:<a href="http://server/dorf1.php">http://server/dorf1.php</a>><br><br>But the page we got was "
login.php" (a bit altered: "access denied", etc.)<br>So the URI of the page returned by form.submit() isn't updated if there is a redirect, please fix :)<br>Best regards.<br>