fjab 发表于 2016-1-8 17:55:48

我就是看看,路过

825408811 发表于 2016-1-25 12:22:40

淡定一下吧,不要太鸡冻呵,要淡定!

moker 发表于 2016-2-1 22:10:55

看看。。。

q2533q 发表于 2016-2-7 20:27:52

支持楼主,感谢楼主的分享,好贴必须学习!

q59541511 发表于 2016-3-18 14:09:57

支持你的分享

dfdfdouyan 发表于 2016-3-27 20:07:09

看看是不是需要的

微笑的面具 发表于 2016-3-27 20:13:40

打酱油的啦,飘过赚点海币而已。

ahrimancold 发表于 2016-3-29 23:51:38

新人 求学新人 求学新人 求学

xiaozhuzhu 发表于 2016-4-16 15:50:11

Dim username, password, cookie, buf
username = "isaacc" '你的帐号
password = "******" '你的密码
buf = "username=" & username & "&cookietime=2592000&password=" & password & "&quickforward=yes&handlekey=ls"
Set http = CreateObject("Msxml2.ServerXMLHTTP.4.0")
http.open "POST", "http://bbs.anjian.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1", False
http.send buf
cookie = http.getResponseHeader("Set-Cookie")'获取Cookie设置

http.open "POST", "http://bbs.anjian.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1", False
http.setRequestHeader "Accept", _
"application/x-shockwave-flash, " & _
"image/gif, image/jpeg, image/pjpeg, " & _
"application/x-ms-application, " & _
"application/x-ms-xbap, " & _
"application/vnd.ms-xpsdocument, " & _
"application/xaml+xml, */*"
'表示我们所用的浏览器能接受的Content-type

http.setRequestHeader "Referer", "http://bbs.anjian.com/forum.php" '当前页面是从那个页面链接来的
http.setRequestHeader "Accept-Language", "zh-cn" '语言设置
http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" '表示客户端提交给服务器文本内容的编码方式
'http.setRequestHeader "Accept-Encoding", "gzip, deflate"
http.setRequestHeader "Host", "bbs.anjian.com" '所请求的主机
http.setRequestHeader "Content-Length", Len(buf) '表示提交的数据字节大小
http.setRequestHeader "Connection", "Keep-Alive" '数据传递完并不立即关闭连接
http.setRequestHeader "Cache-Control", "no-cache" '返回消息中的Cache用于指定网页缓存
http.setRequestHeader "Cookie", cookie
http.Send buf

http.open "GET", "http://bbs.anjian.com/", False
Http.Send
xmlBody = http.ResponseBody
Set ObjStream = CreateObject("Adodb.Stream")
With ObjStream
.Type = 1
.Mode = 3
.Open
.Write xmlBody
.Position = 0
.Type = 2
.Charset = "GB2312"
BytesToBstr = .ReadText
.Close
End With

Call Plugin.Sys.SetCLB(BytesToBstr)

MsgBox "已将登陆后论坛的源文件放到剪切板,粘贴到记事本即可看到。"

liuyuantao 发表于 2016-4-16 19:32:34

易语言学习资料,学习一下吧支持楼主,感谢楼主!
页: 1 2 [3] 4 5 6 7 8 9 10 11 12
查看完整版本: 易语言POST学习教程(初级 中级 高级)