xudzhang
V2EX  ›  问与答

为什么有的 URL 用浏览器能访问用 Postman 请求就是 404?

  •  
  •   xudzhang · Jun 10, 2018 · 4406 views
  •   You need to sign in to view this topic
    This topic created in 2979 days ago, the information mentioned may be changed or developed.

    即使在 Postman 中把所有浏览器开发者工具能看到的 header 信息都带上也是无法访问,服务器怎么知道来请求的到底是浏览器还是 Postman 呢?

    6 replies    2018-06-10 21:03:16 +08:00
    xiaoxinxiaobai
        1
    xiaoxinxiaobai  
       Jun 10, 2018 via Android
    具体贴出来看看?或者把请求导入到 Postman 看看。404 的意思明白吧?
    flowfire
        2
    flowfire  
       Jun 10, 2018 via iPhone
    ua 或者 cookie 吧,其实我比较怪异是你地址写错了
    flowfire
        3
    flowfire  
       Jun 10, 2018 via iPhone
    @flowfire 怀疑
    watzds
        4
    watzds  
       Jun 10, 2018 via Android
    请求 Copy as curl 访问看看,或者参数是动态生成的,有校验,访问次数之类
    Cbdy
        5
    Cbdy  
       Jun 10, 2018 via Android
    有没有可能是浏览器基于 history 的前端路由?
    Cbdy
        6
    Cbdy  
       Jun 10, 2018 via Android
    @Cbdy 看错,当我没说😳
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3099 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:50 · PVG 20:50 · LAX 05:50 · JFK 08:50
    ♥ Do have faith in what you're doing.