curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: how to make requests of http2 using curl

From: Dan Fandrich via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 17 Dec 2019 09:17:10 +0100

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.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-12-17