On Tue, Dec 17, 2019 at 02:44:11PM +0800, peng xu via curl-library wrote:
> curl_easy_setopt(easy_handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
You should really be checking the error codes returned by all these functions.
A failure here is a pretty big red flag.
--
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
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
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