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
msink
07/09/2019, 5:32 AM
Does it work for
http://
?
l
Lyon Chen
07/09/2019, 5:40 AM
@msink Yes, it works! Thanks a lot. Should I install some features or modules for https?
m
msink
07/09/2019, 5:51 AM
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
Lyon Chen
07/09/2019, 5:56 AM
@msink Got it. Thanks for your reply.😀
Lyon Chen
07/10/2019, 9:16 AM
@msink I found it may cause by missing CA. Is there any way to set CA file path for ktor curl engine?