首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

求用winsock写个自动POST登录某国外网站的源码,该怎么处理

2012-12-14 
求用winsock写个自动POST登录某国外网站的源码对于高手来说应该很简单的。程序只要求自动POST登录该页面,判

求用winsock写个自动POST登录某国外网站的源码
对于高手来说应该很简单的。
程序只要求自动POST登录该页面,判断登录的帐号正确与否,然后记录下来。
事成之后报酬1000RMB。
联系QQ:28506641
该网站地址:
https://mlogin.plaync.co.kr/session/new?login=1&return_to=http%3A%2F%2Fm.aion.plaync.co.kr%2F

用 HTTP Analyzer V5 抓下的 HTTP头文件:
                                                                                                                                                                                     
(Request-Line)   POST /session HTTP/1.1                                                                                                                                                                           
Accept           application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*                             
Referer          https://mlogin.plaync.co.kr/session/new?login=1&return_to=http%3A%2F%2Fm.aion.plaync.co.kr%2F                                                                                                    
Accept-Language
ko                                                                                                                                                                                               


Content-Type     application/x-www-form-urlencoded                                                                                                                                                                
Accept-Encoding  gzip, deflate                                                                                                                                                                                    
User-Agent       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; @zb8an9MQ>o>m=:V=VMI>ST+M3LC2mp%k-<CD; InfoPath.2)                                                                                            
Host             mlogin.plaync.co.kr                                                                                                                                                                              
Content-Length   127                                                                                                                                                                                              


Connection       Keep-Alive                                                                                                                                                                                       
Cache-Control    no-cache                                                                                                                                                                                         
Cookie           _EXEN=1; _as=QycNpwhcsCdupmySzRnNSqqmO48rqyh69Q3BD3WbqdQ%3D--wTlXBEwKkU8zQhm8jBBnfdaHQdxnuymaZTNbTIWKynYKicDpMg3VDCzwi4unWr%2BbUQFQ7lOAydD3anFvE%2FVvxZt2XZnPPLtsn3bJ7VjHzVcQ4gSOmKO0Uw0CAd8%3D  
 
开始编写代码:

headstr= headstr & "POST /session" & vbcrlf

headstr= headstr & "application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" & vbcrlf

headstr= headstr & "https://mlogin.plaync.co.kr/session/new?login=1&return_to=http%3A%2F%2Fm.aion.plaync.co.kr%2F" & vbcrlf

headstr= headstr & "Accept-Language ko" & vbcrlf

headstr= headstr & "Content-Type     application/x-www-form-urlencoded" & vbcrlf

headstr= headstr & "Accept-Encoding  gzip, deflate" & vbcrlf

headstr= headstr & "User-Agent       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; @zb8an9MQ>o>m=:V=VMI>ST+M3LC2mp%k-<CD; InfoPath.2)" & vbcrlf

headstr= headstr & "Host mlogin.plaync.co.kr" & vbcrlf

headstr= headstr & "" & vbcrlf

headstr= headstr & "" & vbcrlf



headstr= headstr &"" & vbcrlf

headstr= headstr &"" & vbcrlf

headstr= headstr &"" & vbcrlf


这里是用工具抓下的 POST 的数据:

Parameter Name          Value                        
return_to               http://m.aion.plaync.co.kr/  
user_session[login]     joonhoda83                   
user_session[password]  wnsghek00                    
x                       46                           
y                       34                           


//后面懒得编写了。试过很多次,就是不知道是哪里出问题。所以来这里求高手指导下。。。有能通过的源代码,学习一下最好了。。

紧急求教啊。











[解决办法]
大家快来看啊,此人大骗子啊,他的QQ 28506641  自己百度一下
大家别帮他写,免的吃苍蝇!
[解决办法]
http://www.sunshinebean.com/blog/article/73.html
http://www.sunshinebean.com/blog/article/71.html
http://www.sunshinebean.com/blog/article/70.html
http://www.sunshinebean.com/blog/article/59.html

热点排行