Looking for a very simplistic but more importantly fast method of getting an HTTP response code from some large files. I've tried numerous perl packages including WWW::Mechanize and WWW::Curl (among other LWP::UserAgent);, but it seems the common method in these is to perform a GET command to grab the entire file first before outputting the response code. I simply want a 200 or 404 response (such as grabbing only the info from a CURL -I command). The reason I cannot use a GET command is these are large files and the load on the server will be too much. I can probably build something from just this raw header output, but I wanted to know if something already exists out there. Thanks!
UPDATE - This is resolved. LWP does support a simple head function, which can be used in Mech. So we can do both:
$mech->head(your url)
and
$mech->get(your url)