cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:Re: libcurl post_callback

From: lu <koower_at_126.com>
Date: Mon, 10 Aug 2015 10:09:10 +0800 (CST)

I want to upload a large binary file to http server

In order to improve the speedŁ¬i want to divide the file into several pars, for example FILE*+ offset
I dont't know hot to do , such as use function "curl_formadd"

curl_formadd(&pFormPost,
                     &pLastElem,
                      CURLFORM_COPYNAME,
                       "ufile01",
                     CURLFORM_FILE,
                    localfile,
                    CURLFORM_CONTENTTYPE,
                     "application/octet-stream",
                    CURLFORM_END);

Its sixth parameters is local file path , does it support file handle ,such as FILE *
If it does not support, is there any other methods

thank you

At 2015-08-10 05:22:07, "Daniel Stenberg" <daniel_at_haxx.se> wrote:
>On Sat, 8 Aug 2015, lu wrote:
>
>> I want to upload large binary file to http server via post method I want to
>> use callback function, supports breakpoint and supports multi thread while
>> reading the same file I tried several methods, both failed.
>
>You need to tell us *exactly* what you want, what you did and in what ways
>your attempts failed or we can't help you.
>
>--
>
> / daniel.haxx.se
>-------------------------------------------------------------------
>List admin: http://cool.haxx.se/list/listinfo/curl-library
>Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-08-10