On Sat, 09 Aug 2008 15:47:12 -0700, Merdinus wrote:
> The webpage is at:  http://patft.uspto.gov/netahtml/PTO/srchnum.htm
> The submit form is submitting all the hidden variables in the webpage
> as well as a 7 digit number for a patent (ex. 7123456).  To gather
> info, after the call to "submit_form" I've edited the code to I've
> printed $mech->uri() to a file.  I then copied and pasted that string
> into a browser and the browser (IE7) happily gets redirected on, so it
> seems that submit_form is bringing me from the "start" webpage to the
> "middle" webpage, but then it's not carrying me on to the final
> webpage.

Take a look at what's being returned and it's obvious; it's not a redirect
but a page whose content contains an HTTP-EQUIV refresh tag.  Mech doesn't
follow those because the delay might be non-zero, resulting in the
interstitial page being visible to the user.

See http://www.perlmonks.org/?node_id=447314 .

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to