William Tasso wrote:
> Greetings
>
> Wondering ... is there a tool which reports 301 etc. redirects for any
> given domain/host?
>
> /clink
A quick 1-liner
$ echo 'http://hotmail.co.uk' | perl -MLWP::UserAgent -MLWP::Debug="+" -ne
'$ua=LWP::UserAgent->new;$res=$ua->get($_)'
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET
http://hotmail.co.uk
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::UserAgent::request: Simple response: Found
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET
http://lc2.bay0.hotmail.passport.com/cgi-bin/login
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::UserAgent::request: Simple response: Found
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET
http://www.hotmail.com
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 265 bytes
LWP::UserAgent::request: Simple response: Found
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET
http://login.live.com/login.srf?id=2&svc=mail&cbid=24325&msppjph=1&tw=...s=1&fsa
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 1448 bytes
LWP::Protocol::collect: read 1448 bytes
LWP::Protocol::collect: read 1448 bytes
LWP::Protocol::collect: read 1448 bytes
LWP::Protocol::collect: read 1448 bytes
LWP::Protocol::collect: read 1448 bytes
LWP::Protocol::collect: read 1618 bytes
LWP::UserAgent::request: Simple response: OK
--
Brian Wakem
Email:
http://homepage.ntlworld.com/b.wakem/myemail.png >> Stay informed about: 301 trace