Re: Getting HEAD of the redirect message

Gisle Aas <[email protected]> Sun, 22 Aug 2010 15:54:21 +0200
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
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