how can i send a requestBody using this :
try {
data =(URL("<URL>" + path).openConnection() as HttpsURLConnection).apply {
sslSocketFactory = createSocketFactory(listOf("TLSv1.2"))
hostnameVerifier = HostnameVerifier { _, _ -> true }
readTimeout = 5_000
}.inputStream.bufferedReader().readText()
} catch (e: Exception) {
println("error").toString()
}
The code is written with Kotlin