|
本帖最后由 zxd36383 于 2018-2-8 14:57 编辑
我已经获取到了COOKIE.使用助手得到了代码
Dim http As New SufeiUtil.HttpHelper()
Dim item As New SufeiUtil.HttpItem()
item.URL = ""
item.Method = "get"
item.IsToLower = False
item.Cookie = TextBox1.Text
item.Referer = ""
item.Postdata = ""
item.Timeout = 100000
item.ReadWriteTimeout = 30000
item.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
item.ContentType = "text/html"
item.Allowautoredirect = False
item.ProxyIp = ""
item.ResultType = ResultType.[String]
Dim result As HttpResult = http.GetHtml(item)
'取出返回的Cookie
Dim cookie As String = result.Cookie
TextBox1.Text = cookie
'返回的Html内容
Dim html As String = result.Html
TextBox2.Text = html
'表示访问成功,具体的大家就参考HttpStatusCode类
If result.StatusCode = System.Net.HttpStatusCode.OK Then
End If
'表示StatusCode的文字说明与描述
Dim statusCodeDescription As String = result.StatusDescription
但是用上面的对代码.获取不了任何信息.但是我可以让他在WEB控件显示出来
|
|