a49666
V2EX  ›  问与答

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

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