[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] how to prevnt wget from following 302 Location header?
From: |
Tim Ruehsen |
Subject: |
Re: [Bug-wget] how to prevnt wget from following 302 Location header? |
Date: |
Thu, 08 Aug 2013 14:15:41 +0200 |
User-agent: |
KMail/4.10.5 (Linux/3.10-1-amd64; KDE/4.10.5; x86_64; ; ) |
On Thursday 08 August 2013 11:51:53 Darshit Shah wrote:
> > I have searched in the wget's man page for info how to prevent wget
> > from follow after 302 Location headers and I didn't find any
> > appropriate material. has someone here any idea?
>
> Why would you not want to follow the 302 Header? In case you simply
> want the location, use the --spider mode which will not download the
> file. You could couple that with the -S which will print the Server
> Headers on stdout.
>
> However, there is no way (currently) to prevent wget from following a
> 302 Header.
--max-redirect=0 should do it.
Regards, Tim