Dave
04/26/2021, 10:41 AMDeactivated User
04/26/2021, 10:51 AMUrlVfs
accepts a HttpClient
, you can create a custom HttpClient
(by implementing the requestInternal
method that redirects it to a other HttpClient (one created with createHttpClient()
modifying its headers), that would actually act as an interceptor)Dave
04/26/2021, 3:08 PMval resp = client.request(Http.Method.GET,uriStr)
val cnt = resp.content
val sb = StringBuilder()
resp.responseCharset.decode(sb, cnt.readAll())
val t0=sb.toString()
I have tried various other options...but nothing gives me the correct content.
Using java libs direct works fine.response.headers["Content-Encoding"] == "gzip"
Deactivated User
04/28/2021, 6:43 PMDave
04/29/2021, 8:56 AM