jsoup
jsoup copied to clipboard
Can't transmission byte array as requestBody
Can't transmission byte array as requestBody
there is the request which use bytes as it's requestBody . I handle it with OkHttp : RequestBody.create(MediaType.parse(type), bytes); But I don't known how to do it with Jsoup
This could be an improvement to add to jsoup. You can set a String request body (req.requestBody(String)), and you can send bytes through an input stream as a multipart upload, but currently it is not possible to set the entire body as a byte array.
What's the use case that you're looking at?