怎么模拟登录asp.net的网站?

zhuangjunx 2010-09-21 10:06:25



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

这样的好像登录不了。
...全文
180 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xuying_849244860 2011-10-31
  • 打赏
  • 举报
回复
帮你顶
KK3K2005 2010-09-26
  • 打赏
  • 举报
回复
[Quote=引用楼主 zhuangjunx 的回复:]
这样的好像登录不了。
[/Quote]

能 还是 不能?
zhuangjunx 2010-09-26
  • 打赏
  • 举报
回复
自己顶。。。
zhuangjunx 2010-09-22
  • 打赏
  • 举报
回复
自己顶。。。

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧