in reply to Browsing php pages properly?
If I understand correctly, you're trying to downloade web pages. One (or more) of them redirects you to another page, and you want to know how to download the page to which you've been redirected.
LWP should already do this for you. Compare the request and simple_request methods of LWP::UserAgent.
However, LWP will only do this if the redirect is an HTTP redirect. If the redirect is done via HTML's META tags or via JavaScript, LWP cannot help you.
WWW::Mechanize might process HTML META tags, but it definitely will not do JavaScript either.
If the PHP emits JavaScript to perform the redirection, you might want to consider Win32::IE::Mechanize.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Browsing php pages properly?
by TacoVendor (Pilgrim) on Feb 01, 2006 at 16:40 UTC | |
by ikegami (Patriarch) on Feb 01, 2006 at 16:58 UTC | |
by TacoVendor (Pilgrim) on Feb 01, 2006 at 17:05 UTC |