Hi all, I'm trying to use ktor 1.2.2 with Curl eng...
# ktor
l
Hi all, I'm trying to use ktor 1.2.2 with Curl engine to call REST API on Windows, but it always returns the following excpetion. Could you kindly give some comments? Thanks. Console log: HttpClient: REQUEST: https://postman-echo.com/get?foo1=bar1&foo2=bar2 HttpClient: METHOD: HttpMethod(value=GET) HttpClient: COMMON HEADERS HttpClient: -> Accept-Charset: UTF-8 HttpClient: -> Accept: / HttpClient: CONTENT HEADERS HttpClient: REQUEST https://postman-echo.com/get?foo1=bar1&foo2=bar2 failed with exception: io.ktor.client.engine.curl.CurlIllegalStateException: Connection failed for request: io.ktor.client.engine.curl.internal.CurlRequestData@48bd218
m
Does it work for
http://
?
l
@msink Yes, it works! Thanks a lot. Should I install some features or modules for https?
m
I'm not sure, but it it can be not
ktor
but
msys2
issue, depends on where you placed `.dll`s, maybe it cannot find certificates.
l
@msink Got it. Thanks for your reply.😀
@msink I found it may cause by missing CA. Is there any way to set CA file path for ktor curl engine?