-->

Is there an Java library for sending binary data o

2019-07-18 09:29发布

问题:

I would like to send quite large chunks of data in a binary format over HTTP, also called HTTP Tunneling.

I would like to use this technique using Java for a few Java Swing applications and maybe an Android application. Is there any good Java libraries for HTTP Tunneling?

回答1:

JHttpTunnel



回答2:

Here is another implementation in Jodd library. There is base implementation named HttpTunnel. Here is a simple example how to use it: https://github.com/oblac/tools/blob/master/src/jodd/tools/http/TinyTunnel.java



回答3:

HttpURLConnection. No need for another library.



回答4:

You can certainly use Apache Commons HTTP library to send HTTP.