I'd say a first idea is to use -v to get to see the full command sequence curl
uses, and then it certainly looks as if the server doesn't think the file is
there for you to retrieve while the directory listing shows it. I'm not sure
there's anything curl can do about that.