xudzhang
V2EX  ›  问与答

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

  •  
  •   xudzhang · Jun 10, 2018 · 4492 views
    This topic created in 3072 days ago, the information mentioned may be changed or developed.

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

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