Just in case, try it with my HttpDownloader, which I published in full source code (just one file) here:
how to download a file from internet[
^].
It worked for me in most tricky situations. The code is short, yet you can learn some useful techniques.
—SA