网页POST数据,但回来的网页不显示数据,怎么处理?
相关代码如下:
Dim Url As String = "http://edi.easipass.com/dataportal/query.do?blno= " & blno & "&vslname= " & vslname & "&voyage= " & voyage & "&qid=402803af0ecb1a4c010ecb1bdbda0163 "
Dim httpReq As System.Net.HttpWebRequest
Dim httpResp As System.Net.HttpWebResponse
Dim httpURL As New System.Uri(Url)
httpReq = CType(Net.WebRequest.Create(httpURL), Net.HttpWebRequest)
httpReq.Method = "POST "
httpResp = CType(httpReq.GetResponse(), Net.HttpWebResponse)
Dim reader As IO.StreamReader = New IO.StreamReader(httpResp.GetResponseStream)
Dim http As String = Trim(reader.ReadToEnd)
在IE中这个网址回来的数据是显示的,但现在我得不到要得到的数据,请问该怎么办?
[解决办法]
把框架页的链接找出来,访问之
[解决办法]
想替你试一试,可变量blno……的值是什么?
思路是先得到有框架的源码,再分析链接,再访问。
[解决办法]
shalen520(Love will keep us alive) ( ) 信誉:100 2007-7-9 16:21:05 得分: 0
把框架页的链接找出来,访问之
-========
正解