jdiaz
01/27/2019, 6:44 PM[ RUN ] io.ktor.client.test.CurlEnginesTest.postTest
kotlin.AssertionError: Expected <HttpBinResponse(url=<http://httpbin.org/post>, args={}, headers={Content-Type=text/plain; charset=UTF-8, Accept=application/json, Content-Length=11, Connection=close, Host=<http://httpbin.org|httpbin.org>})>, actual <HttpBinResponse(url=<http://httpbin.org/post>, args={}, headers={Accept=application/json, Connection=close, Content-Length=11, Content-Type=text/plain; charset=UTF-8, Host=<http://httpbin.org|httpbin.org>, X-Imforwards=20})>.
e5l
01/28/2019, 8:07 AMCURL
engine is available in ktor 1.1.2
e5l
01/28/2019, 8:11 AMjdiaz
01/28/2019, 10:46 AMjdiaz
01/28/2019, 10:47 AMe5l
01/28/2019, 10:48 AMjdiaz
01/28/2019, 11:18 AMjdiaz
01/28/2019, 11:18 AM➜ ktor git:(master) where curl
/usr/local/opt/curl/bin/curl
e5l
01/28/2019, 11:57 AMHttpBin
provides the additional header and this test should be changed.e5l
01/28/2019, 11:58 AMjdiaz
01/28/2019, 12:06 PMcurl_easy_setopt(curl, CURLOPT_COOKIEFILE, file)
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1L)
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L)
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, auth)
curl_easy_setopt(curl, CURLOPT_USERPWD, user)
jdiaz
01/28/2019, 12:06 PM