我用InternetGetCookie和用抓包工具抓包看到的cookie的值不一样为什么抓包看到的Cookie比用InternetGetCookie得到的多了几个字段

解决方案 »

  1.   

    是不是抓包的时候访问页面
    页面把那个cookie给删除了
    先把cookie清一下,再抓个包试试
      

  2.   

    抓包工具每次抓包的cookie都一样吗,InternetGetCookie呢? 多抓几个看看
      

  3.   

    用httpwatch试试
    有可能是cookie已经起作用了,多了几个字段,大体上是些什么内容?
      

  4.   

    iehttpheader 这个工具也试下
      

  5.   

    Cookie也分几种,有临时的(在内存中),有持久化的(保存在磁盘中)请仔细阅读下面的InternetGetCookie说明:ResInternetGetCookie does not require a call to InternetOpen. InternetGetCookie checks in the windows\cookies directory for persistent cookies that have an expiration date set sometime in the future. InternetGetCookie also searches memory for any session cookies (cookies that do not have an expiration date) that were created in the same process by InternetSetCookie, since these cookies are not written to any files. Rules for creating cookie files are internal to Microsoft® Win32® Internet functions and might change in the future.