• 企业400电话
  • 微网小程序
  • AI电话机器人
  • 电商代运营
  • 全 部 栏 目

    企业400电话 网络优化推广 AI电话机器人 呼叫中心 网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    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

    上一篇:易心asp分页类 v1.0
    下一篇:使用ODBC数据库管理Serv-U的FTP用户及相关ASP编程[附源码示例下载]
  • 相关文章
  • 

    © 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

    asp中xmlhttp组件发包 asp,中,xmlhttp,组件,发包,