Shan
02/25/2021, 1:41 AMHEAD
request with Ktor's HttpClient
specifically with using CIO engine? This request:
httpClient.head<HttpResponse> {
url {
protocol = URLProtocol.HTTPS
host = "<http://www.website.com/trying/to/get/etag/outta/here|www.website.com/trying/to/get/etag/outta/here>"
}
}
Returns java.nio.channels.UnresolvedAddressException
only when using CIO engine. When using another engine, e.g. Android, its completes fine. Wondering if there's something special I need to be doing with CIO head requests.Shan
02/25/2021, 1:42 AMe5l
02/25/2021, 6:26 AMurl
to host. Could you try url("<http://www.website.com/trying/to/get/etag/outta/here|www.website.com/trying/to/get/etag/outta/here>")
instead?Shan
02/26/2021, 12:25 AMhost =
using the Android engine? Perhaps appending all the url-related strings differently? anyways, working now, so thanks!