Help for this page
use WWW::Mechanize; ... $mech->get( "http://www.mysite.com/index.html" ); die( "Error getting page" ) if ( ! $mech->success() ); print( $mech->response->headers_as_string );