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. 

Reply via email to