wget normally stops when it gets a HTTP error, e.g. 404 or so. Is there an option to make wget to download the page content regardless of the HTTP code?
Asked
Active
Viewed 3.0k times
1 Answers
78
Parameter: --content-on-error, available from wget 1.14:
If this is set to on, wget will not skip the content when the server responds with a http status code that indicates error.
Paŭlo Ebermann
- 218
- 1
- 11
Nowaker
- 1,605
-
1@lilydjwg interestingly the option --content-on-error is not on here http://www.gnu.org/software/wget/manual/wget.html#Wgetrc-Commands - but is on man wget ftp://ftp.connect.org.uk/hpux/Gnu/wget-1.14/wget-1.14.man.html – barlop Dec 17 '13 at 20:52
-
3@barlop that's because the first link you linked is for wget 1.13.4, and the latter is for wget 1.14.
--content-on-errorwas added at 1.14. – lilydjwg Dec 18 '13 at 13:29 -
@lilydjwg well, if the online manual is going to be a man page, one would think they should update it to the latest man page. – barlop Dec 18 '13 at 13:48
-
1The linked manual is now the 1.15 one, which includes the mentioned option. – Paŭlo Ebermann Apr 17 '14 at 16:12
-
1
--content-on-errorseems not to be working in case of401response. See also this. – Joe Sep 21 '17 at 23:56
curlinstead. – Daniel Beck Mar 06 '11 at 08:49