httpie could help you diagnose the header issue. For the download itself, I usually just use curl, or Transmission if I can convince it to treat the URL as a web seed...