• 请不要在回答技术问题时复制粘贴 AI 生成的内容
niuker
V2EX  ›  程序员

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

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