asp中xmlhttp组件发包

(编辑:jimmy 日期: 2024/9/22 浏览:2)

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

一句话新闻
Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。