V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
niuker
V2EX  ›  程序员

GET 请求过长,除了改请求 method,还有什么别的好方法吗?

  •  
  •   niuker · Apr 11, 2019 · 2422 views
    This topic created in 2586 days ago, the information mentioned may be changed or developed.
    6 replies    2019-04-12 10:35:23 +08:00
    halk
        1
    halk  
       Apr 11, 2019
    貌似没有
    改 method 最简单吧?
    tomczhen
        2
    tomczhen  
       Apr 11, 2019
    把锅丢给运维,去改 Web Server 限制。
    myyou
        3
    myyou  
       Apr 11, 2019
    把 nginx client_max_body_size 参数调大
    weixiangzhe
        4
    weixiangzhe  
       Apr 11, 2019 via iPhone
    原来有个接口是因为 要传 itemids,传了几千个就过长跪了,然后我的处理是 改成每两百个 请求一次,用 promise.all 一把请求多个,速度比一次全请求还快一点
    freedomshi
        5
    freedomshi  
       Apr 11, 2019
    改 post
    leorealman
        6
    leorealman  
       Apr 12, 2019
    貌似 URL 长度是每个浏览器和 HTTP 协议的规范吧,,非开发路过。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3043 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 15:14 · PVG 23:14 · LAX 08:14 · JFK 11:14
    ♥ Do have faith in what you're doing.