Foxtable(狐表)用户栏目专家坐堂 → [已解决]post查询怎么写?


  共有1331人关注过本帖树形打印复制链接

主题:[已解决]post查询怎么写?

帅哥哟,离线,有人找我吗?
浙江仔
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1316 积分:9484 威望:0 精华:1 注册:2010/7/21 14:20:00
[已解决]post查询怎么写?  发帖心情 Post By:2017/3/30 13:32:00 [只看该作者]

网页:http://zscx.zjsafety.gov.cn/examweb/certList.jsp


<script type="text/javascript">

function doSearch() {
$("#certList").html("查询中");
$.ajax({
url: "/examweb/examCert/findByPage.action",
dataType: "json",
type: "POST",
data: {
"examCertVo.studentName": $("#studentName").val(),
"examCertVo.studentCode": $("#studentCode").val(),
"type": $("input[name='type']:checked").val(),
_: (new Date() - 0)
},

其他省略。。。

</script>

如上面网页的一个查询功能,怎么写查询语句?
比如查询这个名字的信息,我尝试了一下,获取不到:
http://zscx.zjsafety.gov.cn/examweb/examCert/findByPage.action?studentName=余**&studentCode=3307********5437&type=true

[此贴子已经被作者于2017/3/30 14:26:40编辑过]

 回到顶部
帅哥哟,离线,有人找我吗?
浙江仔
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1316 积分:9484 威望:0 精华:1 注册:2010/7/21 14:20:00
  发帖心情 Post By:2017/3/30 14:26:00 [只看该作者]

 
Dim msg As String = "examCertVo.studentName=%E4%BD%99%E4AA&examCertVo.studentCode=3307******37&type=0&_=1490854313819"
Dim req = System.Net.WebRequest.Create("http://zscx.zjsafety.gov.cn/examweb/examCert/findByPage.action")
req.Method = "POST"
req.C
Dim aryBuf As Byte() = Encoding.GetEncoding("GB2312").GetBytes(msg)
req.ContentLength = aryBuf.Length
Dim writer = req.GetRequestStream()
writer.Write(aryBuf, 0, aryBuf.Length)
writer.Close()
writer.Dispose()
Dim pos = req.GetResponse
Dim stm As System.IO.Stream = pos.GetResponseStream()
Dim reader As New System.IO.StreamReader(stm)
Dim str As String = reader.ReadToEnd
pos.Close
stm.Close
reader.close
msgbox(str)
[此贴子已经被作者于2017/3/30 14:26:56编辑过]

 回到顶部
帅哥哟,离线,有人找我吗?
狐狸爸爸
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47448 积分:251048 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2017/3/30 14:29:00 [只看该作者]

其实你可以看看这个的:
http://www.foxtable.com/mobilehelp/scr/0153.htm


 回到顶部