<HttpURLConnection with manual CookieHandler not w...
# stackoverflow
r
HttpURLConnection with manual CookieHandler not working Java's default CookieHandler is good for one instance on one program, but i need many instance to request. so I coded manual Cookie Handler. here is my code. (Unirest is needed cause of Cookie thing) import kong.unirest.Cookie class CookieJar { val cookies = arrayListOf() fun supply(url: String): String { return cookies.filter { url.contains(it.domain?.trim('.') ?: ".") }...