以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [已解决]post查询怎么写?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=98470)

--  作者:浙江仔
--  发布时间:2017/3/30 13:32:00
--  [已解决]post查询怎么写?
网页: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编辑过]

--  作者:浙江仔
--  发布时间: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编辑过]

--  作者:狐狸爸爸
--  发布时间:2017/3/30 14:29:00
--  
其实你可以看看这个的:
http://www.foxtable.com/mobilehelp/scr/0153.htm