主頁 > 知識庫 > asp中xmlhttp組件發(fā)包

asp中xmlhttp組件發(fā)包

熱門標簽:伊春外呼業(yè)務系統(tǒng) 綿陽防封電銷卡價格 電銷機器人教育 河北智能外呼系統(tǒng)軟件 福建外呼增值業(yè)務線路 中國辦理電信400電話 電銷機器人源碼網盤下載 調度系統(tǒng)外呼 宜賓語音外呼系統(tǒng)軟件

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

標簽:銅川 電商邀評 延邊 新鄉(xiāng) 優(yōu)質小號 蘇州 那曲 河池

巨人網絡通訊聲明:本文標題《asp中xmlhttp組件發(fā)包》,本文關鍵詞  asp,中,xmlhttp,組件,發(fā)包,;如發(fā)現本文內容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內容系統(tǒng)采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《asp中xmlhttp組件發(fā)包》相關的同類信息!
  • 本頁收集關于asp中xmlhttp組件發(fā)包的相關信息資訊供網民參考!
  • 推薦文章