English 中文(简体)
Java Servlet POST JSON 扼杀其他Java Servlet
原标题:Java Servlet POST JSON string to other Java Servlet

我有一份备忘录,全文见从名册上传来的一名JSON。 第三(PHP)政党申请将一名JSON插在服务器上,该服务器将数据输入数据库,但情况是错误的。

我想做一些测试,我希望有一个简单的信封(或仅仅是一个主要的支那类),把一名JSON摆到保护站。 但是,我并不真正找到如何做到这一点。

任何如何这样做的想法? 何时开始?

非常感谢任何帮助!

问题回答

雅加达共同点HttpClient提供了你们所需要的那种功能。

http://hc.apache.org/http://client-3.x/

您将能够利用这一请求,向贵邮局发出这一请求。

你们不需要写成法典来做到这一点,而是能够利用简单的“纳尔多”来做到这一点。

Plugin - https://addons.mozilla.org/en-US/firefox/addon/poster/

提到需要测试的 j鱼堆积,

Put application/json 内容类型方框

减去你希望以“Content to Send”部分发送的json数据

不要忘记在最后点击“Post”:





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签