a49666
V2EX  ›  问与答

请教一下,用 postman 模拟抢京东优惠券,为什么把 cookie 加在 header 里以后还是不行

  •  
  •   a49666 · Jun 17, 2017 · 3236 views
    This topic created in 3431 days ago, the information mentioned may be changed or developed.

    完全模拟 chrome 里看到的 header,在 postman 里设置的一模一样, 但是获取到的 html 里要登录而并非是抢优惠券结果的页面。

    9 replies  •  2017-06-17 18:06:52 +08:00
    NemoAlex
    NemoAlex
    Jun 17, 2017 via iPhone
    1
    说明还是不一样
    oisc
    oisc
    Jun 17, 2017
    2
    这个应该有防重放的逻辑吧,不会这么简单
    herozzm
    herozzm
    Jun 17, 2017 via Android
    3
    chrome 有 posman 扩展,才能做到真正一致
    clearbug
    clearbug
    Jun 17, 2017 via Android
    4
    同样觉得可能还是哪里不一样,可以先抓包看看
    hansnow
    hansnow
    Jun 17, 2017
    5
    Postman Interceptor
    popok
    popok
    Jun 17, 2017 via iPhone
    6
    先确定数据包是不是哪里漏了,没弄对,再确定是不是京东加了其他验证
    jugelizi
    jugelizi
    Jun 17, 2017
    7
    为什么要模拟 直接运行点击按钮不就好了
    dsg001
    dsg001
    Jun 17, 2017
    8
    用 js 模拟点击,一直没抢到
    watzds
    watzds
    Jun 17, 2017 via Android
    9
    F12 右键复制 curl
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1550 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 07:19 · PVG 15:19 · LAX 23:19 · JFK 02:19
    ♥ Do have faith in what you're doing.