源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

asp中xmlhttp组件发包

  • 时间:2021-11-05 01:42 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:asp中xmlhttp组件发包
asp中xmlhttp组件发包 写的一个小偷函数,注意红色代码部分,其他的自己添加吧! Function PostHttpPageFrom(HttpUrl,stra,FromUrl)    Dim Http Set Http=server.createobject("MSXML2.XMLHTTP")    Http.open "POST",HttpUrl,False    Http.setrequestheader "content-length",len(stra)   Http.setrequestheader "content- type","application/x-www-form-urlencoded"    Http.setrequestheader "Referer",FromUrl    Http.send stra  If Http.Readystate<>4 then       Set Http=Nothing  GetHttpPage="$False$" Exit function End if PostHttpPageFrom=bytesToBSTR(Http.responseBody,"gb2312")   Set Http=Nothing If Err.number<>0 then       Err.Clear End If End Function Function BytesToBstr(Body,Cset)    Dim Objstream Set Objstream = Server.CreateObject("adodb.stream")    objstream.Type = 1 objstream.Mode =3 objstream.Open1 d) objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset    BytesToBstr = objstream.ReadText    objstream.Close    set objstream = nothing End Function
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部