develooper Front page | perl.libwww | Postings from February 2003

How to down load a page from web site which is expecting a browser supporting Frame

Thread Next
From:
Wenjie Wang
Date:
February 11, 2003 15:11
Subject:
How to down load a page from web site which is expecting a browser supporting Frame
Message ID:
DEEEKFLKGPCNLFMBOBAOCEHOCAAA.williamw@aurema.com
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


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About