Connection re-use w.r.t HTTP/1.1 and HTTP/2.0

2019-12-16 Thread Kunal Ekawde via curl-library
Hi All, Connection re-use has been discussed earlier in some context but I wanted to know more with respect to recent modifications. I've use case of both HTTP/1.1 and HTTP/2 transfers and the settings are same to both as it applies to same multi handle. curl_multi_setopt(multi_handle_m, CURLMOPT

Re: Connection re-use w.r.t HTTP/1.1 and HTTP/2.0

2019-12-16 Thread Daniel Stenberg via curl-library
On Mon, 16 Dec 2019, Kunal Ekawde via curl-library wrote: Connection re-use has been discussed earlier in some context but I wanted to know more with respect to recent modifications. I don't think there have been any recent modifications that changed connection reuse. curl_multi_setopt(mul

Re: [poll comment] "grpc"

2019-12-16 Thread Rémy Léone via curl-library
Hello, gRPC got a URL system. For instance if you have the method myMethod in the foo.bar package the URL would be: https://endpoint/foo.bar/myMethod From a protocol perspective, all gRPC calls are HTTP2 POST on a specific URL such as the one previously shown https://github.com/grpc/grpc/blob

Re: [poll comment] "grpc"

2019-12-16 Thread Daniel Stenberg via curl-library
On Mon, 16 Dec 2019, Rémy Léone wrote: gRPC got a URL system. For instance if you have the method myMethod in the foo.bar package the URL would be: https://endpoint/foo.bar/myMethod That's an HTTPS URL, not a gRPC URL. To me, that's a sign gRPC should be done *using* libcurl, not by libcurl

Re: Connection re-use w.r.t HTTP/1.1 and HTTP/2.0

2019-12-16 Thread Kunal Ekawde via curl-library
On Mon, Dec 16, 2019 at 6:17 PM Daniel Stenberg wrote: > > On Mon, 16 Dec 2019, Kunal Ekawde via curl-library wrote: > > > Connection re-use has been discussed earlier in some context but I wanted to > > know more with respect to recent modifications. > > I don't think there have been any recent m

how to make requests of http2 using curl

2019-12-16 Thread peng xu via curl-library
I have wriiten the code below to make a http2 request, but the debug info showed me that it's http 1.1, would you please tell me why and how should I amend it: curl_global_init(CURL_GLOBAL_ALL); CURL* easy_handle = curl_easy_init(); struct curl_slist* head = NULL; char *form_data = "Content-Dispo

Re: how to make requests of http2 using curl

2019-12-16 Thread Daniel Stenberg via curl-library
On Tue, 17 Dec 2019, peng xu via curl-library wrote: I have wriiten the code below to make a http2 request, but the debug info showed me that it's http 1.1, would you please tell me why and how should I amend it: Does your libcurl support HTTP/2 to begin with? -- / daniel.haxx.se | Get the

Re: how to make requests of http2 using curl

2019-12-16 Thread Daniel Stenberg via curl-library
On Tue, 17 Dec 2019, peng xu via curl-library wrote: curl_multi_setopt(easy_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); curl_multi_setopt() needs a *multi* handle in its first argument, not an easy handle. This is therefore a very bad line of code. You can only do multiplexing with th

Re: how to make requests of http2 using curl

2019-12-16 Thread Ray Satiro via curl-library
On 12/17/2019 2:26 AM, Daniel Stenberg via curl-library wrote: On Tue, 17 Dec 2019, peng xu via curl-library wrote: I have wriiten the code below to make a http2 request, but the debug info showed me that it's http 1.1, would you please tell me why and how should I amend it: Does your libcur