Lua-cURL / Lua-cURLv3

Lua binding to libcurl
MIT License
275 stars 63 forks source link

question How to set HTTP VERSION ? #180

Closed dauuricus closed 3 years ago

dauuricus commented 3 years ago

How to set protocol?

example , I want to set HTTP 1.1

easy:setopt(curl.OPT_HTTP_VERSION,CURL_HTTP_VERSION_1_1) 

but it is bad argument.

libcurl case:

curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);

Rf.https://curl.se/libcurl/c/CURLOPT_HTTP_VERSION.html

moteus commented 3 years ago
easy:setopt_http_version(curl.HTTP_VERSION_1_1)