Bug) In file curl_action.c, do_get_post_url uses strdup to copy
chunk.data, truncating binary blob content during download.

I confirmed that returning chunk.data and header_chunk.data (instead
of strduping and freeing them) allows retrieval of binary data and
incidentally avoids an unnecessary copy.  The caller is already
responsible for freeing the output parameters.

If libdeltacloud is still alive, it would be nice to have
do_get_post_url fixed so binary blobs can be downloaded.  And also,
some enhancements!

Enhancement Request 1) Replace or supplement POST with PUT for uploading files
Enhancement Request 2) Add a method for downloading blobs directly to
a file (rather than into memory).

Many thanks,

Todd

Reply via email to