作家
登录

asp中xmlhttp组件发包

作者: 来源:www.28hudong.com 2013-03-30 08:34:40 阅读 我要评论

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实现的iframe批量替换工具

说明: 1、此工具可以批量替换网站上asp,.txt,php,aspx...等等文本型的字符 2、将replace.asp上传至网站根目录后,运行http://网站域名/replace.asp 3、为了安全,使用本程序后请删除或更名复制代码 代码如下:<%@L>>>详细阅读


本文标题:asp中xmlhttp组件发包

地址:http://www.17bianji.com/kaifa2/ASP/32403.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)