熟女人妻少妇精品视频,污污的网站,无码熟熟妇丰满人妻啪啪,中文人妻AV久久人妻水

專(zhuān)業(yè)的廣州網(wǎng)站建設公司、廣州網(wǎng)站設計制作公司為您服務(wù),電話(huà):020-85548809,29883069
新聞中心
專(zhuān)業(yè)專(zhuān)注專(zhuān)心,行業(yè)行情行規
分享交流,永無(wú)止境,我們愿與您共同進(jìn)步

asp獲取遠程網(wǎng)頁(yè)的指定內容

發(fā)布日期:[2010/8/21]   編輯:奇億廣州網(wǎng)站建設

用ASP獲取遠程網(wǎng)頁(yè)的指定內容,可以輕易獲取到別人網(wǎng)頁(yè)的指定的某些內容,其實(shí)也就是ASP小偷程序原理了,代碼如下:

<%
'用ASP獲取遠程目標網(wǎng)頁(yè)指定內容,代碼由廣州網(wǎng)站建設http://www.studstu.com提供
On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
        t = GetBody(Path)
        getHTTPPage=BytesToBstr(t,"GB2312")
End function
Function Newstring(wstr,strng)
        Newstring=Instr(lcase(wstr),lcase(strng))
        if Newstring<=0 then Newstring=Len(wstr)
End Function
Function BytesToBstr(body,Cset)
        dim objstream
        set objstream = Server.CreateObject("adodb.stream")
        objstream.Type = 1
        objstream.Mode =3
        objstream.Open
        objstream.Write body
        objstream.Position = 0
        objstream.Type = 2
        objstream.Charset = Cset
        BytesToBstr = objstream.ReadText 
        objstream.Close
        set objstream = nothing
End Function
Function GetBody(url) 
        on error resume next
        Set Retrieval = CreateObject("Microsoft.XMLHTTP") 
        With Retrieval 
        .Open "Get", url, False, "", "" 
        .Send 
        GetBody = .ResponseBody
        End With 
        Set Retrieval = Nothing 
End Function

'ASP獲取遠程網(wǎng)頁(yè)指定內容開(kāi)始
Dim wstr,str,url,start,over,dtime
a="開(kāi)始內容"         'ASP獲取目標網(wǎng)頁(yè)內容開(kāi)始標記
b="結束內容"         'ASP獲取網(wǎng)頁(yè)內容結束標記
url="http://www.studstu.com/"
        wstr=getHTTPPage(url)
        start=Newstring(wstr,a)
        over=Newstring(wstr,b)
 body=mid(wstr,start,over-start)
response.write ""&body&"" '輸出獲取到的網(wǎng)頁(yè)內容
'ASP獲取遠程網(wǎng)頁(yè)指定內容結束
%>

廣州建網(wǎng)站、廣州做網(wǎng)站
或者將本文《asp獲取遠程網(wǎng)頁(yè)的指定內容》收藏和分享到:
復制本文《asp獲取遠程網(wǎng)頁(yè)的指定內容》地址給好友:
博客| 汉阴县| 大化| 郴州市| 峨边| 从化市| 肥西县| 霸州市| 南溪县| 丹阳市| 延安市| 武强县| 广州市| 巴楚县| 图们市| 镇平县| 常德市| 华宁县| 潞西市| 剑河县| 岳阳市| 洛阳市| 郎溪县| 大宁县| 都安| 鲁甸县| 临湘市| 浙江省| 平遥县| 和田市| 永靖县| 浦城县| 师宗县| 和林格尔县| 蒲城县| 长春市| 高州市| 南岸区| 元阳县| 三穗县| 洛隆县|