POST /my/ajaxServlet.do?cmd=banInfo HTTP/1.1
x-requested-with: XMLHttpRequest
Accept-Language: zh-cn
Referer: http://kf.yy.com/channal/freezeChannal.action
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Host: kf.yy.com
Content-Length: 0
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: hiido_ui=0.08905643237243754; username=zasdzxzasdzx; password=CE11F63055BCB943DCB58562BD000D6246783464; qeelookey=221F975BC4BF6C824488C855C25800CBB49603E1; project=; osinfo=401B5CFF2A31039B9EE7B6CB452CE8DB8C489D34; JSESSIONID=8E259FBE7DA4C698492B9CC79D63E1ECHTTP/1.1 200 OK
Server: nginx/1.0.14
Date: Wed, 19 Sep 2012 08:05:05 GMT
Content-Type: text/json;charset=UTF-8
Connection: keep-alive
Cache-Control: no-cache
pragma: no-cache
expires: 0
Content-Length: 467
x-requested-with: XMLHttpRequest
Accept-Language: zh-cn
Referer: http://kf.yy.com/channal/freezeChannal.action
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Host: kf.yy.com
Content-Length: 0
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: hiido_ui=0.08905643237243754; username=zasdzxzasdzx; password=CE11F63055BCB943DCB58562BD000D6246783464; qeelookey=221F975BC4BF6C824488C855C25800CBB49603E1; project=; osinfo=401B5CFF2A31039B9EE7B6CB452CE8DB8C489D34; JSESSIONID=8E259FBE7DA4C698492B9CC79D63E1ECHTTP/1.1 200 OK
Server: nginx/1.0.14
Date: Wed, 19 Sep 2012 08:05:05 GMT
Content-Type: text/json;charset=UTF-8
Connection: keep-alive
Cache-Control: no-cache
pragma: no-cache
expires: 0
Content-Length: 467
源码下载地址:http://download.csdn.net/detail/geoff08zhang/4571358
VB中使得winsock控件发送拼凑好的HTTP数据包(即字符串)就行了,注意“HTTP/1.1 200 OK”是HTTP服务器的应答。
另外网上有很多关于HTTP协议的介绍,楼主自己找一下。