jsoup icon indicating copy to clipboard operation
jsoup copied to clipboard

Can't transmission byte array as requestBody

Open yqMac opened this issue 7 years ago • 1 comments

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

yqMac avatar Sep 12 '18 09:09 yqMac

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?

jhy avatar Sep 02 '21 11:09 jhy