各位大大,小弟初学VB网络编程不久,还希望各位大大加以指点,小弟万分感谢。
小弟有2个问题:
1,如题,根据http协议怎样进行winsock的流程控制和封装? 
2,服务器返回数据中怎样分析源代码找到连接点?并判断连接点击是否成功? 打开了页面以后,从返回的数据里找到要点击的链接,怎样用变量将它们保存起来??http内容:
GET /l HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-silverlight, application/msword, application/vnd.ms-excel, */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Host: 
Connection: Keep-Alive
Cookie: PHPSESSID=c862caf76da923621ff74b50b691ff4d==============================这个是载入验证码的图片,载入完成图片后要识别
GET /themes/buxwiz/bwcap?PHPSESSID=c862caf76da923621ff74b50b691ff4d HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Host: 
Connection: Keep-Alive
Cookie: PHPSESSID=c862caf76da923621ff74b50b691ff4d==============================这个将数据提交到服务器,提交完成后,你就登陆了
POST /l HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-silverlight, application/msword, application/vnd.ms-excel, */*
Referer: 
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Host:
Content-Length: 123
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: PHPSESSID=c862caf76da923621ff74b50b691ff4dtoken=ce04a7e9a050b988d5119b1c4edd660732e095a4&login_username=用户名&login_password=密码&login_spassword=&keystring=验证码==============================这个是打开浏览页面
GET /v HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-silverlight, application/msword, application/vnd.ms-excel, */*
Referer: 
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Host: 
Connection: Keep-Alive
Cookie: PHPSESSID=c862caf76da923621ff74b50b691ff4d; chhrz=555183669058fb273008595a9393d628==============================这个是打开其中一条链接
GET /mdl?k=6B097E496EA54D4087DAA0C9BDD3BAC8&cdk=flase HTTP/1.1
Accept: */*
Referer:
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Host: 
Connection: Keep-Alive
Cookie: PHPSESSID=c862caf76da923621ff74b50b691ff4d; chhrz=555183669058fb273008595a9393d628链接打开了以后
==============================
GET /nkbb_dT565.php?complete& HTTP/1.1
Accept: */*
Referer: 
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Host: 
Connection: Keep-Alive
Cookie: PHPSESSID=c862caf76da923621ff74b50b691ff4d; chhrz=555183669058fb273008595a9393d628; 6B097E496EA54D4087DAA0C9BDD3BAC8=1246356617