EllenWS has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I used POST from LWP module to grab a result page. That page should be auto-redirected to another final page (that what I want)if it ran through a browser, but I only got the 'intermediated page', not the final one through POST.

How could I fix it?

2005-09-19 Retitled by g0n, as per Monastery guidelines
Original title: 'redirection'

  • Comment on problem handling web page redirection with LWP

Replies are listed 'Best First'.
Re: problem handling web page redirection with LWP
by Fletch (Bishop) on Sep 19, 2005 at 02:50 UTC

    Read perldoc LWP::UserAgent for the documentation on the requests_redirectable method. By default only GET and HEAD requests will follow redirects automagically.

      Thanks!!!
      I got this now.

      But I only grab the same page, not the final one.