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

Hi, I am trying to automate a website which has a page that implements link prefetching. Does LWP support link prefetching? This website has a login page initially and once logged in, the home page loads multiple image and java script files to cache and then gets redirected to a different page. Using LWP I am able to do a POST and login and I see the response-content which show that page having the 'link rel' tags. But I am unable to proceed beyond this. Any hint is appreciated. Thanks. Balu

Replies are listed 'Best First'.
Re: Link prefetching in LWP
by Corion (Patriarch) on Feb 19, 2009 at 08:01 UTC

    LWP::UserAgent does not support link prefetching. It also does not support JavaScript. If you want to automate a website in general, WWW::Mechanize behaves more like a common browser than LWP::UserAgent does, but it also does not support Javascript. If the website you're automating needs Javascript, see Win32::IE::Mechanize.

      Thanks for the quick response. The website does use javascript, I'll try Win32::IE::Mechanize.
        Win32::IE::Mechanize did the trick :)