Use custom user-agent for header requests, and report errors properly.