dqls67891 2014-01-20 07:16
浏览 722
已采纳

如何更改HTTP GET请求的最大长度以存储参数? 可能吗?

Hi I want to increase the size of the params (in URL) via HTTP GET request.

My requirement is, I am modifying a html form which is already built with few fields and the type of form request is "GET" to add another description field to it. the length of the description may be several lines. If I send this data also via GET, there may b e a chance of exceeding the limit of the total URL limit. SO as a measure of precaution I am trying to increase the GET request size.

Is it possible? if so how can I do it?

  • 写回答

2条回答 默认 最新

  • dongpu2694 2014-01-20 07:28
    关注

    Search returned this question: Is there a limit to the length of a GET request?

    To conclude: in specifications no limit is set for GET request size, but some web browsers set limits (for example, IE, which limits the GET request size to about 2000 characters). Also, from my own experience I know that some web servers (like Apache) allow to configure the maximum GET/POST request size, but this depends on which web server You are using in the backend.

    Suggestion: use POST instead of GET, if You need to have bigger request size than 2000 characters. Verify whether Your web-server sets limits to GET/POST request sizes or not.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥60 pb数据库修改或者求完整pb库存系统,需为pb自带数据库
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路