curl-library
Re: issue with libcurl/7.50.3 and http2 with multipart upload request?
Date: Thu, 10 Nov 2016 15:27:24 +0100
Hi Daniel,
thanks for the quick reply, the only thing I know about library versions in
use is in the User-Agent:
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.
As I said we use the R language which has a library called HTTR, built
with LIBCURL.
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).
That makes me think of something wrong with the calculation of the
content-length in certain cases.
If that is true the problem is probably in the HTTR library.
I haven't tried doing this from the command line but I will as soon as I
have some time.
Regarding turning off ALPN: yeah we are aware that we are turning off HTTP2.
The client falls back to HTTP 1.1 which works fine.
thanks a lot!
Michele
On 10 November 2016 at 14:59, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Thu, 10 Nov 2016, Michele Rossi wrote:
>
> we have found a problem while trying to perform a multipart HTTP PUT
>> request against an HTTP 2.0 server (Jetty 9.3.14) using HTTR (an R library)
>> which in turn uses libcurl 7.50.3.
>>
>
> Using which nghttp2 version?
>
> Perhaps you will want to check the relevant code in case there is
>> something obvious to fix.
>>
>
> The code already sets the EOF flag when it reaches the end of the upload:
>
> https://github.com/curl/curl/blob/master/lib/http2.c#L953
>
> so the question is rather why that condition doesn't trigger in your case,
> or perhaps the bug is in nghttp2 (which I think is unlikely).
>
> Happy to help with further logs / fiddler images / anything else you might
>> need.
>>
>
> Does this happen all the time? Can you do a successful multipart formpost
> with the curl command line client against that server? Is there anything
> else "special" about this upload?
>
> (We have solved the problem by disabling ALPN on LIBCURL).
>>
>
> I'd call that a work-around since you then probably switch off HTTP/2.
>
> --
>
> / 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-10