in reply to Checking that a page gets served via HTTPS
Look at the head function of Getting more out of LWP::Simple
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce