I\'m completely new to Kotlin. I want to do a login validation using POST method and to get some information using GET method. I\'ve URL, server Username and Password alread
import java.io.IOException import java.net.URL fun main(vararg args: String) { val response = try { URL("http://seznam.cz") .openStream() .bufferedReader() .use { it.readText() } } catch (e: IOException) { "Error with ${e.message}." } println(response) }