I ran this command to download from the following website, with the -p and -k options added (See here for their descriptions.)
wget -pk http://www.tomshardware.com/
What it returns is
...
--2012-11-29 23:32:42-- http://www.tomshardware.com/%3C%25=%20content[i].buildUserPic%20%25%3E
Reusing existing connection to www.tomshardware.com:80.
HTTP request sent, awaiting response... 404 Not Found
2012-11-29 23:32:43 ERROR 404: Not Found.
And the exit status is 8, indicating that the execution is not successful. Why is it not successful?
You are fetching the default document (index.html or its equivalent depending on the web server) as well as all referenced assets (‘A’ elements, src attributes of ‘IMG’ and ‘SCRIPT’ elements and ‘LINK’ elements) in that document.
One of those references is broken (oops) and thus the 404. In this case it look like some bit of JavaScript that in a browser would be fine but to wget (which doesn’t have a JavaScript engine) it is interpreted as a URL which points to a reference that does not exist.