khttp icon indicating copy to clipboard operation
khttp copied to clipboard

Kotlin HTTP requests library. Similar to Python requests.

Results 54 khttp issues
Sort by recently updated
recently updated
newest added

### issue ```Kotlin:Main.kt 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: } ``` ###...

Hi! great project - question, I see that there's a possibility to perform async requests, my question is, is there any plans for this library to support HTTP/2 ? Or,...

This proposal is about adding a `data class FormData(val value: Any, val type: String)` to khttp, and accept it in `data` as `Map`. When GenericRequest sees this combination, it sets...

Add a gradle dependency to the README file

Sending a POST-request to a site which is then redirecting back to itself results in reposting the request. This can result in an endless loop which eventually throws a StackOverflowException....

Upon updating the Kotlin version for this project, the existing implementation for async functionality should be refactored to coroutines.

enhancement

This looked like a nice library for use in an Android app. But using get("https://&c", auth=BasicAuthorization("user", "pass")) as documented gave an error: > W/System.err: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Base64; >...

bug

I've stumbled upon what I think is a bug. If I do something like this: ``` khttp.get( Info.RootUrl, params = mapOf( "action" to "status", "minified" to "true" ), headers =...

bug

Whether I try to .jsonArray or .jsonObject, I always get an `org.json.JSONException: End of input at character 0 of ` error.

I'm always getting an error 415 media unsupported when trying to post a JSONArray. Is it not possible to do this in khttp ?