Is there an Java library for sending binary data over HTTP, HTTP Tunneling?

独自空忆成欢 提交于 2019-12-12 18:36:42

问题


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.



来源:https://stackoverflow.com/questions/4042573/is-there-an-java-library-for-sending-binary-data-over-http-http-tunneling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!