Libcurl and corrupt files
BlitzMax Forums/Brucey's Modules/Libcurl and corrupt files
| ||
Hi, I'm using libcurl to upload zip files to ftp. But every 3rd or 4th uploaded archiv is corrupt. Libcurls debug function is reporting that binary mode is used, not ASCII. Every hint what to search for is appreciated. Are there any parameters to play with? The code is mostly from the examples. |
| ||
Looks like the failure only appears on certain servers. Will do some more investigations. |
| ||
Hey Volker, Did you get error message 18? CURLE_PARTIAL_FILE (18) A file transfer was shorter or larger than expected. This happens when the server first reports an expected transfer size, and then delivers data that doesn't match the previously given size. It's an error I'm getting when doing HEAD requests. Was wondering if this is related. Edit: Never mind, my problem lies elsewhere. cURL complains when a HEAD request reports a Content-Length but doesn't supply the content body. Which is strange as HEAD requests aren't supposed to give a content body but should report the Content-Length on forehand. Last edited 2011 |