Skip to main content.
home | support | download

Back to List Archive

Find a problem in swishspider

From: Kei <97909585d(at)not-real.polyu.edu.hk>
Date: Thu Feb 24 2000 - 15:47:01 GMT
Hi everybody!

After execution  print RESP $response->header("content-type"). "\n",
the content of $response->header("content-type") is text/htmltext/html
charset=iso-8859-1 if the webpage contain metadata <meta
http-equiv="Content-Type" content="text/html; charset=iso-iso-8859-1">
and it does not execute the below program

if( $response->header("content-type") eq "text/html" ) {
 open( LINKS, ">$localpath.links" ) || die( "Could not open links file
$localpath.links\n" );
 $p = HTML::LinkExtor->new( \&linkcb, $url );
 $p->parse( $contents );
 close( LINKS );
 }

I set the $url is http://www.singtao.com/index.html . Do I set this URL
right?
and I run the program in home.  Is this output correct or some bugs in
this program?
Thank you.
Received on Thu Feb 24 10:51:29 2000