develooper Front page | perl.libwww | Postings from April 2001

problem with frames

Thread Next
April 29, 2001 05:32
problem with frames
Message ID:
I am trying to access a URL using an LWP user agent,
but I get a response that says something like "You
Will need a frames-compatible browser to use this
site."  I am wondering if someone can kindly tell me
if there is a way to get around this requirement,
i.e., somehow fool the responding server to think I
have what it needs, i.e., a frames-compatible brower.
Please note I am already using a a legit UA string
(not a shorthand version)

 $ua->agent ("Mozilla/4.0 (compatible; MSIE 4.01;
Windows 95)");

Thanks in advance.

Arturo DiDonna



use strict;
use LWP::Debug qw (+);
use HTTP::Response;
use HTTP::Request;
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request::Common;

my ($cookie_jar, $ua, $response, $sessid,$url);
########MAIN PROGRAM==========================
my ($content, $req);

$cookie_jar = HTTP::Cookies->new(file=>"cookies.dat");
$ua = LWP::UserAgent->new();
$ua->agent ("Mozilla/4.0 (compatible; MSIE 4.01;
Windows 95)");

$req =

$response = $ua->request($req);
$content = $response->content();
print $content;

Do You Yahoo!?
Il tuo indirizzo gratis e per sempre su

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About