C++ with libcurl issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • srinivembu
    New Member
    • Oct 2008
    • 7

    C++ with libcurl issue

    Hi,

    I have linked libcurl library (v7.19.6) statically with my C++ application. Using curl, we upload & download files to/from the window azure storage webservice using https. The download works for smaller files with few KBs. But for files with size greater than 50 MB, the download fails with the error CURLE_PARTIAL_F ILE. This issue occurs randomly ie., some times the file was downloaded successfully without issue and some times, the same file fails with the error. The OpenSSL version used is 0.9.8j.

    This issue occurs in both in Windows & linux platforms.

    Any idea to solve this issue.

    Regards,
    Srinivasan
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    CURLE_PARTIAL_F ILE is not an error, it is a warning (CURL error reference) indicating that the data size supplied by the server is not the same as the size it said it was going to supply.

    There can be a number of reasons for this, for example transfer of a text file from a Linux to a Windows system with translation of newlines on. but you will need to determine the exact cause of the extra or missing data.

    Comment

    • srinivembu
      New Member
      • Oct 2008
      • 7

      #3
      Hi,

      Thanks for your reply.

      Actually, I identified the cause for the problem.

      It seems that the problem is in our network where some external forces abort the connection while the blob is actively downloading (identified by using some network analyzer). I have tested my application many times in other networks (like AWS EC2 instance) and the issue haven't reproduced.

      Regards,
      Srini

      Comment

      Working...