源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

PostHttpPage用asp是实现模拟登录效果的代码

  • 时间:2022-08-13 08:44 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:PostHttpPage用asp是实现模拟登录效果的代码
'================================================== '函数名:PostHttpPage '作  用:登录 '================================================== Function PostHttpPage(RefererUrl,PostUrl,PostData)      Dim xmlHttp      Dim RetStr           Set xmlHttp = CreateObject("Msxml2.XMLHTTP")       xmlHttp.Open "POST", PostUrl, False     XmlHTTP.setRequestHeader "Content-Length",Len(PostData)      xmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"     xmlHttp.setRequestHeader "Referer", RefererUrl     xmlHttp.Send PostData      If Err.Number <> 0 Then          Set xmlHttp=Nothing         PostHttpPage = "$False$"         Exit Function     End If     PostHttpPage=bytesToBSTR(xmlHttp.responseBody,"GB2312")     Set xmlHttp = nothing End Function 
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部