That did it, thanks again =)
One last problem... Like you said, it's not handling 300-series responses, which I now understand to mean that the given URL is acting as a redirect.
This is a problem because the redirected URL is not actually checked for 404, and so my script ignores a large...