in reply to Curl Header ONLY!

When the WWW::Mechanize docs fail you, check the LWP::UserAgent doc. Mech isa LWP::UA.

~>perldoc LWP::UserAgent | ack -i \\bhead\\b requests_redirectable ['GET', 'HEAD'] headers from the <head> section of HTML documents. The defa +ult is this is "['GET', 'HEAD']", as per RFC 2616. To change to i +nclude $ua->head( $url ) $ua->head( $url , $field_name => $value, ... ) This method will dispatch a "HEAD" request on the given $ur +l.
perl -MWWW::Mechanize -le 'print WWW::Mechanize->new->head("http://per +lmonks.org")->message' OK

Replies are listed 'Best First'.
Re^2: Curl Header ONLY!
by omegaweaponZ (Beadle) on Jan 03, 2014 at 16:57 UTC
    ugh, I facepalm myself. That was too easy. Thanks!