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

解决方案 »

  1.   

    需要了解HTTP协议,请参考《WinSock网络编程经络》第16章,源码解压后找WebSrc, WebClnt是HTTP的实现.
    源码下载地址:http://download.csdn.net/detail/geoff08zhang/4571358
      

  2.   

    把抓包得到的数据放在字符串里,用winsock连接80端口后发送就是了.
      

  3.   

    使用WinhttpRequest对象吧,创建后,设置好协议头等数据,直接发即可
      

  4.   

    httprequest是.net的。
    VB中使得winsock控件发送拼凑好的HTTP数据包(即字符串)就行了,注意“HTTP/1.1 200 OK”是HTTP服务器的应答。
    另外网上有很多关于HTTP协议的介绍,楼主自己找一下。
      

  5.   

    除了使用winsock,VB中还可以使用inet控件、xmlhttp组件等,都可以实现HTTP数据包的收发。