我想HTML
从页面获取代码:http:
//trendstop.knack.be/nl/detail/446121707/6x-international.aspx
但每次我使用以下方式HTML
发出请求时:
Imports System
Imports System.IO
Imports System.Web
Imports System.Net
Imports System.IO.IsolatedStorage
Imports System.Threading
Imports Microsoft.VisualBasic
Imports System.Text
Public Class GetSource
Function GetHTML(ByVal strPage As String) As String
Dim strReply As String = "NULL"
Try
Dim objHttpRequest As System.Net.HttpWebRequest
Dim objHttpResponse As System.Net.HttpWebResponse
objHttpRequest = System.Net.HttpWebRequest.Create(strPage)
objHttpResponse = objHttpRequest.GetResponse
Dim objStrmReader As New StreamReader(objHttpResponse.GetResponseStream)
strReply = objStrmReader.ReadToEnd()
Catch ex As Exception
strReply = "ERROR! " + ex.Message.ToString
End Try
Return strReply
End Function
End Class
我得到了重定向网址http://trendstop.knack.be/nl/detail/446121707/6x-international/activity.aspx的 html
我怎样才能获得原始的html代码url
?