国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

asp中xmlhttp組件發(fā)包

2020-07-27 13:04:22
字體:
供稿:網(wǎng)友

asp中xmlhttp組件發(fā)包
寫的一個小偷函數(shù),注意紅色代碼部分,其他的自己添加吧!
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

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 连城县| 松桃| 应用必备| 四会市| 奈曼旗| 北川| 吉首市| 沐川县| 镇原县| 黎平县| 揭东县| 巴楚县| 莱州市| 资阳市| 金坛市| 拉萨市| 麟游县| 邵东县| 东乡族自治县| 滨海县| 青冈县| 晋江市| 年辖:市辖区| 台中市| 富蕴县| 宜城市| 西充县| 醴陵市| 灯塔市| 大悟县| 东台市| 沙坪坝区| 崇阳县| 达州市| 贡觉县| 保山市| 宣城市| 玛纳斯县| 甘德县| 安化县| 阳信县|