Greetings,

I've been successfully downloading web pages using LWP::UserAgent without
any problem till I meet "http://www.ingrammicro.com.au";.  All I could get is
a complaint from the web server that my browser doesn't support frame :(  It
says:

   <p>This page uses frames, but your browser doesn't support them.</p>

I've present my user agent is "Mozilla/4.0 (compatible; MSIE 6.0; Win32)",
but I'm still couldn't get away from it.  Following is my code snip:
-----------------------------------8<-------------------------
        my $myUserAgent = LWP::UserAgent->new();
        $myUserAgent->agent("Mozilla/4.0 (compatible; MSIE 6.0; Win32)");
        $myUserAgent->cookie_jar(HTTP::Cookies->new(autosave => 1));
        local $PageURL = 'http://www.ingrammicro.com.au';
        my $myRequest = new HTTP::Request 'GET', $PageURL);
        $myResponse = $myUserAgent->request($myRequest);
-----------------------------------8<-------------------------

I would like to know how to deal with this kind of situation?  Any
suggestion is much appreciated.


TIA

WWang

Reply via email to