in reply to •Re: LWP::Simple and redirects
in thread LWP::Simple and redirects

Actually, you can get some headers from LWP::Simple:
head($url) Get document headers. Returns the following 5 values if succ +essful: ($content_type, $document_length, $modi­fied_time, $expires, +$server) Returns an empty list if it fails. In scalar context return +s TRUE if successful.
although you cant get any headers with the get method. merlyn is right though; you should use LWP::UserAgent instead.


Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.