2006년 12월 6일 수요일

WWW::Mechanize 사용 헤더보기

my $mech = WWW::Mechanize->new( autocheck => 1 );
   $mech->get( 'http://my.site.com' );
   my $res = $mech->response();
   for my $key ( $response->header_field_names() ) {
       print $key, " : ", $response->header( $key ), "\n";
   }

댓글 없음:

댓글 쓰기