Shaofh

Shaofh

vb.net後台抓取網頁內容

    Public Function GetContent(ByVal url As String)
        On Error Resume Next
        Dim XmlHttp As Object
        XmlHttp = CreateObject("Microsoft.XMLHttp")
        XmlHttp.Open("POST", url, False)
        XmlHttp.Send()

        Dim vs As String
        vs = XmlHttp.responseText
        XmlHttp = Nothing
        GetContent =vs 
    End Function

posted on 2006-07-03 15:43  sh37  阅读(1168)  评论(0编辑  收藏  举报

导航