On Mon, Mar 7, 2016 at 12:31 AM, Daniel Stenberg <dan...@haxx.se> wrote: > On Mon, 7 Mar 2016, Daniel Stenberg wrote: > >>> One thing I think the problem is in lib/http.c >>> >>> else if(data->set.postfields) >>> expectsend = (curl_off_t)strlen(data->set.postfields); >> >> >> Hm. That doesn't look right... > > > That said, your use case won't trigger any problem because of that as far as > I can see and one of your primary problems is probably that you didn't use > CURLOPT_POSTFIELDSIZE. > > > -- > > / daniel.haxx.se > ------------------------------------------------------------------- > List admin: https://cool.haxx.se/list/listinfo/curl-library > Etiquette: https://curl.haxx.se/mail/etiquette.html
Sorry, original post doesn't show but i did add it in long post_size; post_size = ftell(fp); curl_easy_setopt(conn, CURLOPT_POSTFIELDSIZE, post_size); Thank you, -- Waitman Gobble Los Altos California USA 650-900-8557 ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html