HttpURLConnection POST fails in Kotlin with java.net library
I am getting Response code 400 with the following POST connection in Kotlin using java.net
standard library shipped in Kotlin and kotlinx.serialization.json
API. The same works on a online API Testing tool, hence I suspect I am doing something wrong in sending the payload.