curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: issue with libcurl/7.50.3 and http2 with multipart upload request?

From: Michele Rossi <michele.rossi_at_gmail.com>
Date: Fri, 11 Nov 2016 16:50:53 +0100

hi,

sorry for the confusion, our system provides 2 distinct upload operations:
one is a standard HTTP PUT, the type that a browser would form to upload a
file to a server.
The other is a more complex Multipart HTTP POST with 2 parts: JSON Metadata
+ a file.

They both fail occasionally with the same error - the lack of a correct
ending of the HTTP2 operation.

I will try to get in touch with the HTTR developers somehow.

thanks,
Michele

On 10 November 2016 at 16:11, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Thu, 10 Nov 2016, Michele Rossi wrote:
>
> user-agent: libcurl/7.50.3 r-curl/2.2 httr/1.2.1
>>
>> I hope that answers your question. I am not even sure what nghttp2 is to
>> be honest.
>>
>
> nghttp2 is the library libcurl itself uses for doing the lower level
> HTTP/2 work, so it plays a fairly important part in curl's HTTP/2 protocol
> handling and behavior.
>
> The upload call fails all the time for a given document (the HTTP PUT call
>> is about uploading a generic file with its metadata. The metadata is one of
>> the 2 parts, the file is the other part).
>>
>
> Now you confuse me. The subject says multipart upload, now you say HTTP
> PUT. Which opreation did you mean fails? Both?
>
> That makes me think of something wrong with the calculation of the
>> content-length in certain cases.
>>
>
> If the upload size you tell curl about doesn't match the amount of data
> you (intend to) send then curl will of course not mark the last data packet
> as the final, since it will believe there are more to send.
>
> If that is true the problem is probably in the HTTR library.
>>
>
> Yes, that's cerainly possible.
>
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-11-11