文章詳情頁(yè)
ASP 百度主動(dòng)推送代碼范例
瀏覽:54日期:2022-06-04 18:22:10
范例代碼
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 PostHTTPPage(url,data) dim Http set Http=server.createobject("MSXML2.SERVERXMLHTTP.3.0") Http.open "POST",url,false Http.setRequestHeader "CONTENT-TYPE", "text/plain" Http.send(data) if Http.readystate<>4 then exit function End if PostHTTPPage=bytesToBSTR(Http.responseBody,"utf-8") set http=nothing if err.number<>0 then err.Clear End function
ASP百度主動(dòng)推送需要上面2個(gè)ASP函數(shù)。
調(diào)用方法:
調(diào)用方法:
baiduts=PostHTTPPage(http://data.zz.baidu.com/urls?site=www.jb51.net&token=xxxxxxx,https://www.jb51.net/article/184256.htm)
到此這篇關(guān)于ASP 百度主動(dòng)推送代碼范例的文章就介紹到這了,更多相關(guān)ASP 百度主動(dòng)推送內(nèi)容請(qǐng)搜索以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持!
標(biāo)簽:
ASP
相關(guān)文章:
1. Java8內(nèi)存模型PermGen Metaspace實(shí)例解析2. PHP VS ASP3. ASP.NET MVC使用jQuery的Load方法加載靜態(tài)頁(yè)面及注意事項(xiàng)4. asp批量添加修改刪除操作示例代碼5. 手把手教你使用Java來(lái)編寫(xiě)ASP組件(1)6. ASP.NET Core 7 Razor Pages項(xiàng)目發(fā)布到IIS的詳細(xì)過(guò)程7. ASP.NET MVC實(shí)現(xiàn)區(qū)域或城市選擇8. asp實(shí)現(xiàn)限制一個(gè)ip只能訪問(wèn)一次的方法9. ASP.NET MVC實(shí)現(xiàn)城市或車(chē)型三級(jí)聯(lián)動(dòng)10. asp.net core應(yīng)用docke部署到centos7的全過(guò)程
排行榜
