Is HTTP PUT supported in J2ME?

心已入冬 提交于 2019-12-05 16:23:17

It is not technically supported by the spec. I am sure there are wrapper classes but I am sure they would introduce their own set of bugs and work arounds.

Writing a simple wrapper isn't hard, writing a decent usable bug free one is way mmore complicated

You may experience some difficulty implementing it on top of SocketConnection as many (most?) implementations won't let you connect to port 80 or 8080 using SocketConnection unless you're trusted/signed.

Right, HttpConnection is limited to those verbs. I don't think it's feasible to patch it to use some other method. You'll want to use Apache HttpClient. Among many other features,

Full implementation of all HTTP methods (GET, POST, PUT, DELETE, HEAD, OPTIONS, and TRACE) in an extensible OO framework.

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