On Aug 22, 2010, at 15:21 , Nigel Horne wrote: > On 22/08/10 14:04, Gisle Aas wrote: >> >> There is no way to prevent redirects from being followed with >> lwp-request. I'm usually happy just using lwp-dump for cases like >> this. > I don't want to prevent the redirect from being followed, I want to see the > contents of the redirect's header.
That's exactly what 'lwp-dump' gives you; but it sends a "GET" request instead of "HEAD". lwp-dump limits the amount of content it prints and make sure to escape stuff so it does not mess up your terminal. --Gisle