我输入https://XXXX/webui/startpage.do,可以看到服务器页面,进行操作,点击一个按钮,然后我用http analyzer看到post过去的数据是:{"id":584,"method":".obj#15458303.stop","params":[]},我现在能自己写一个页面,然后把数据post过去,实现之前单击按钮一样的效果吗?这是模拟数据包进行发送吗?
调试欢乐多
(Request-Line):POST /webui/JSON-RPC HTTP/1.1
Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:zh-cn
Cache-Control:no-cache
Connection:Keep-Alive
Content-Length:52
Content-Type:text/plain
Cookie:JSESSIONID=27CBC3ABE4DD9B23C2122E5FBA08FCC0; pysid=3ad6976e9706612b7c7f617084b2a47e
Host:59.64.142.96
Referer:https://59.64.142.96/webui/startPage.do
User-Agent:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SE 2.X; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; SE 2.X)postdata:{"id":584,"method":".obj#15458303.stop","params":[]}{"id":584,"method":".obj#15458303.stop","params":[]}这要是用servlet怎么实现呢?