I think I'm missing something fairly basic. I'm trying to access a website which requires frames. Following is my script:
my $ua = new LWP::UserAgent;
# neither of the following have any effect
#$ua->agent('Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET C
my $url = URI->new('http://www.takingbackthecountry.com');
my $http_request = new HTTP::Request('GET', $url);
my $response = $ua->request($http_request);
if ($response->is_success and $response->isa('HTTP::Response::Tree'))
This results in the following output:
<meta name="DESCRIPTION" content="">
<!-- Redirection Services Redirector2B-DAL 200-OK -->
<FRAMESET ROWS="100%, *" frameborder="no" framespacing=0 border=0>
<FRAME SRC="http://takinthecountryback.com" NAME="mainwindow" frameb
+order="no" framespacing="0" marginheight="0" marginwidth="0"></FRAME>
Your browser does not support frames. We recommend upgrading your
Click <a href="http://takinthecountryback.com">here</a> to enter th
I've dug through several of the test scripts included with LWP::UserAgent::FramesReady, but I'm just not seeing what I'm missing.
If things get any worse, I'll have to ask you to stop helping me.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||