Originally Posted by
Cactus_Hugger
It's a problem with reading/writing.
Are you taking into account encodings, such as chunked? Are you opening your file in binary mode, if applicable? And could you post some code, so that I can actually analyze it instead of taking shots in the dark?
Additionally, check out libcurl. It's a library that does HTTP, and takes the pain out of it for you. You might be able to get something working, but I guarentee you that you'll miss a corner case like chunked/gzip'd encoded transfers, or an IIS server sending random 100 Continue statements.