带有 libcurl 的大文件的 CURLE_PARTIAL_FILE 错误 [英] CURLE_PARTIAL_FILE error for large files with libcurl

查看:252
本文介绍了带有 libcurl 的大文件的 CURLE_PARTIAL_FILE 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将libcurl库(v7.38.0)与我的C ++静态链接应用.使用curl,我们上传&从服务器https下载文件/从服务器https下载文件.我有下载失败,并显示错误CURLE_PARTIAL_FILE.发生此问题随机的,例如,有时文件成功下载而没有问题,有时同一文件会失败并显示错误.

I have linked libcurl library (v7.38.0) statically with my C++ application. Using curl, we upload & download files to/from server https. I Have download fails with the error CURLE_PARTIAL_FILE. This issue occurs randomly ie., some times the file was downloaded successfully without issue and some times, the same file fails with the error.

此问题发生在android平台中.任何人都可以向我展示如何解决该问题

This issue occurs in android platforms. Anyone can show me how to fix that

推荐答案

CURLE_PARTIAL_FILE意味着在全部内容到达之前传输已中止.通常,这意味着服务器或网络出现问题,而不是客户端出现问题.

CURLE_PARTIAL_FILE means that the transfer was aborted before the full contents arrived. That typically means a bad server or a network problem, not a client-side problem.

如果您不能影响网络或服务器状况,则可能需要考虑忽略此特定错误.

If you cannot affect the network or server conditions, you probably need to consider ignoring this particular error.

这篇关于带有 libcurl 的大文件的 CURLE_PARTIAL_FILE 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆