Hi Gurus,
I wanted to parse a PHP page which is on web.
I don't have access to server where the PHP page is hosted.
So I wanted to get source of that particular page and then parse the source
file.
Here is the code:
-----------Code
use LWP::UserAgent ;
$ua = new LWP::UserAgent ;
$ua->agent("Mozilla/4.0") ; # Play with their minds
$req = new HTTP::Request 'GET',
'http://www.jimmyr.com:80/free_education.php' ;
$req->header('Accept' => 'text/html') ;
$res = $ua->request($req) ;
if($res->is_success){
print $res->content ;
} else {
print "Error: " . $res->code ." ". $res->message ;
}
-------------Code
But When I run the above code I am getting the following error.
Error: 500 Can't connect to www.jimmyr.com:80 (connect: Unknown error).
Is there any alternate way that I can directly parse tables and contents of
the tables on the webpage directly?
Thanks in Advance,
Siva
<<image001.gif>>
