help: curl_multi_info_read always return NULL

2019-12-18 Thread peng xu via curl-library
What I did is to make a http2 post request, the code is below: ``` curl_version_info_data *info = curl_version_info(CURLVERSION_NOW); bool support = (info->features & CURL_VERSION_HTTP2); //create multi handle CURLM *multi_handle = curl_multi_init(); //create sub handle CURL *hnd = curl_easy_init

help:how to compile curl with visual studio and make it support HTTP2

2019-12-17 Thread peng xu via curl-library
how to compile curl with visual studio and make it support HTTP2? Thanks very much--- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html

help: can not make http2 request

2019-12-17 Thread peng xu via curl-library
I write an http request using curl like this: ``` curl_global_init(CURL_GLOBAL_ALL); CURL* easy_handle = curl_easy_init(); curl_easy_setopt(easy_handle, CURLOPT_URL, "https://nghttp2.org/";); curl_easy_setopt(easy_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); data_chunk_t chunk; chun

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