khttp
khttp copied to clipboard
Cannot connect to url with underscore "_".
issue
try {
khttp.post("http://example_path:50000/test", json = mapOf("key" to "value"))
} catch (e: Exception) {
println(e) // => java.net.URISyntaxException: Illegal character in hostname at index 14:
}
cause
hope
post successful. (like a Fuel)