java - J2ME 中的 HTTP PUT 方法

标签 java java-me

我需要通过查看代码示例来理解 PUT 函数, 我想知道这是否可能:

Since most browsers do not support HTTP methods other than GET and POST, we mimic other methods (like PUT and DELETE) as follows. We send a normal POST request and add a parameter _method=PUT or _method=DELETE (take care of the underscore)

请给我一些例子 提前致谢

最佳答案

This post告诉我 PUT 不是规范的一部分。

Here is an example实现 put 的 REST 客户端。

关于java - J2ME 中的 HTTP PUT 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5601327/

相关文章:

java - JSF 在调用操作方法之前不更新值

java - 我什么时候应该为 Map 键创建一个类?

java - 如何在 Spring MVC 中定义基于 url 扩展的消息转换器?

java-me - 现在在哪里使用 jme/j2me?

android - J2ME 类似于 Android 上的 Sprite

java - 比较 Java 错误中的两个字符串时间

带有 OUT 参数的 Java MyBatis 存储过程调用

performance - 是否可以更改 Java ME 中的垃圾收集行为?

java - 如何在 Blackberry 中安排特定线程

java - 包含实体的 XmlPullParserException 解析属性