D
digz
#!/usr/bin/perl
use LWP;
my $browser = LWP::UserAgent->new;
my $response = $browser->get( "http://lkml.org" );
print( $response->content );
In this program I am trying to get the output as the browser displays
it , not the actual HTML page with all the tags .., that $response-
For a example , this URL ,
What I want to save in a string is how the browser shows it
Last 100 messages Today's messages Yesterday's messages
Hottest Messages
LKML.ORG
NOT
what the actual HTML content is:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<link href="/css/frontpage.css" rel="stylesheet" type="text/css" /<title>LKML.ORG - the Linux Kernel Mailing List Archive</title>
<script type="text/javascript" src="/css/multiline-tooltip.js"></
script>
</head>
......
Is there any easy way to achieve this
Thanks
Digz
use LWP;
my $browser = LWP::UserAgent->new;
my $response = $browser->get( "http://lkml.org" );
print( $response->content );
In this program I am trying to get the output as the browser displays
it , not the actual HTML page with all the tags .., that $response-
content returns.
For a example , this URL ,
What I want to save in a string is how the browser shows it
Last 100 messages Today's messages Yesterday's messages
Hottest Messages
LKML.ORG
NOT
what the actual HTML content is:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<link href="/css/frontpage.css" rel="stylesheet" type="text/css" /<title>LKML.ORG - the Linux Kernel Mailing List Archive</title>
<script type="text/javascript" src="/css/multiline-tooltip.js"></
script>
</head>
......
Is there any easy way to achieve this
Thanks
Digz