Is there a way to add raw bytes to the post parameters using Apache's HTTPClient? My motivation is to stream the raw bytes of a stream in a particular encoding and then test what happens to that data when it gets to the server.
edit: I noticed that Apache has a deprecated method to add to the request body using an inputstream, so I could feed this a ByteArrayInputStream, but is there anything better/ not deprecated?