http://www.sufeinet.com/plugin.php?id=keke_group

苏飞论坛

 找回密码
 马上注册

QQ登录

只需一步,快速开始

分布式系统框架(V2.0) 轻松承载百亿数据,千万流量!讨论专区 - 源码下载 - 官方教程

HttpHelper爬虫框架(V2.7-含.netcore) HttpHelper官方出品,爬虫框架讨论区 - 源码下载 - 在线测试和代码生成

HttpHelper爬虫类(V2.0) 开源的爬虫类,支持多种模式和属性 源码 - 代码生成器 - 讨论区 - 教程- 例子

查看: 6549|回复: 1
打印 上一主题 下一主题

[求助] 登陆问题,浏览器是如何知道下一次请求网址的?

[复制链接]
跳转到指定楼层
楼主
发表于 2016-1-18 16:49:54 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
输入https://account.xiaomi.com/pass/serviceLogin?回车,居然连续发送了4次请求!如图:

我的疑问是浏览器是访问https://account.xiaomi.com/pass/serviceLogin?
是如何知道下一次请求网址(https://account.xiaomi.com/pass/ ... p;_dc=1453106363536)的?


另外每次清楚cookie后访问https://account.xiaomi.com/pass/serviceLogin?,第二个请求https://account.xiaomi.com/pass/ ... p;_dc=1453106363536,中的dc=***************会变,这个dc值是浏览器自已自动产生的还是
服务器分配的?如果是分本的话。它是怎么告诉浏览器的?我看了看response全文里没提及dc=


response原文如下:
  • Cache-Control:
    no-cache
  • Cache-Control:
    no-cache
  • Cache-Control:
    no-cache
  • Connection:
    keep-alive
  • Content-Encoding:
    gzip
  • Content-Type:
    text/html; charset=UTF-8
  • Date:
    Mon, 18 Jan 2016 08:39:21 GMT
  • Expires:
    Thu, 01 Dec 1994 16:00:00 GMT
  • Server:
    Tengine
  • Set-Cookie:
    cUserId=EXPIRED; domain=.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    JSESSIONID=aaaLvlmzOpXrt9Ff7a2iv; path=/
  • Set-Cookie:
    deviceId=wb_68a8a6f2-3deb-45c5-ba58-a8a37693af94; domain=account.xiaomi.com; path=/; expires=Sat, 05-Feb-2084 11:53:28 GMT
  • Set-Cookie:
    userId=EXPIRED; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    userId=EXPIRED; domain=account.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    userId=EXPIRED; domain=.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    userId=EXPIRED; domain=account.xiaomi.com; path=/pass/auth; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    userId=EXPIRED; domain=.xiaomi.com; path=/pass/auth; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    serviceToken=EXPIRED; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    serviceToken=EXPIRED; domain=.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    serviceToken=EXPIRED; domain=account.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    serviceToken=EXPIRED; path=/pass/auth; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    serviceToken=EXPIRED; domain=account.xiaomi.com; path=/pass/auth; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    serviceToken=EXPIRED; domain=.xiaomi.com; path=/pass/auth; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    cUserId=EXPIRED; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    uLocale=zh_CN; domain=.xiaomi.com; path=/; expires=Tue, 02-Feb-2016 08:39:21 GMT
  • Set-Cookie:
    cUserId=EXPIRED; domain=account.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    cUserId=EXPIRED; domain=account.xiaomi.com; path=/pass/auth; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    cUserId=EXPIRED; domain=.xiaomi.com; path=/pass/auth; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    passToken=EXPIRED; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    passToken=EXPIRED; domain=account.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    passToken=EXPIRED; domain=account.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    continue=EXPIRED; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    sns_type=EXPIRED; domain=.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    sns_weixin_openId=EXPIRED; domain=.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    sns_weixin_openId=EXPIRED; domain=account.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    etao_qs=EXPIRED; domain=account.xiaomi.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT
  • Set-Cookie:
    pass_trace=zCzdrInwyxJaQHgLajqLI0ylcUPl3kV28C/MgBLW4JaQYgbyHpfrBauDBL6Zj6Q7pA+cmMLbFUT8WImgbkjHk/sfesaxSSmkUliqdLpsFKFDWfeeguhuK5/QjyuVoTeB; domain=account.xiaomi.com; path=/; expires=Sat, 05-Feb-2084 11:53:28 GMT
  • Strict-Transport-Security:
    max-age=7
  • Transfer-Encoding:
    chunked
  • X-Frame-Options:
    SAMEORIGIN






1. 开通SVIP会员,免费下载本站所有源码,不限次数据,不限时间
2. 加官方QQ群,加官方微信群获取更多资源和帮助
3. 找站长苏飞做网站、商城、CRM、小程序、App、爬虫相关、项目外包等点这里
沙发
发表于 2016-1-18 23:16:14 | 只看该作者
js写的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

QQ|手机版|小黑屋|手机版|联系我们|关于我们|广告合作|苏飞论坛 ( 豫ICP备18043678号-2)

GMT+8, 2024-12-23 00:19

© 2014-2021

快速回复 返回顶部 返回列表