What is the size limit of a post request?

后端 未结 9 1404
悲&欢浪女
悲&欢浪女 2020-11-22 02:25

Sorry if this is duplicate,I would think it would be but couldn\'t find anything.

I have a flex application that I am posting data back to a php/mysql server via IE.

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 03:01

    One of the best solutions for this, you do not use multiple or more than 1,000 input fields. You can concatenate multiple inputs with any special character, for ex. @.

    See this:

    
    
    
    
    
    
    
    

    Using any script (JavaScript or JScript),

    document.getElementById("hd").value = document.getElementById("hs1").value+"@"+document.getElementById("hs2").value+"@"+document.getElementById("hs3").value+"@"+document.getElementById("hs4").value+"@"+document.getElementById("hs5").value
    

    With this, you will bypass the max_input_vars issue. If you increase max_input_vars in the php.ini file, that is harmful to the server because it uses more server cache memory, and this can sometimes crash the server.

提交回复
热议问题