首页 >> 文摘 >> ASP/ASP.NET

asp数据采集

采集日期:2008-4-20作者:caocg504(注:本数据由系统自动采集,内容与BHCODE无关)
 'On Error Resume NextServer.Scripttimeout=300'---------------------------------------------------------------------'采集数据Function getHTTPData(url)     dim http     set http=Server.createobject("Msxml2.XMLHTTP")    if instr(url,"http://")=0 then url="http://"&url    Http.open "GET",url,false     Http.send()     if Http.Status<>200  then exit function     getHTTPData=bytesToBSTR(Http.responseBody,"UTF-8")    set http=nothing    if err.number<>0 then err.Clear    sCharset="" End function'----------
本周推荐
MORE
热点关注
MORE