How large can a HTTP form parameter string be?
If I want to pass say a couple of pages worth of XML will a form parameter be ok? Or if not would I need to treat it as a file upload to be sure?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you’re sending the content via POST, rather than as part of the querystring in GET, there’s no universal limit. Some servers may constrain POST requests to some specific size to reduce the risk of denial of service requests, but those limits are likely to be in 1-8 megabyte range on most server configurations.
As a developer, you’ll probably be able to configure that limit if there is one; in Rails, the mechanism depends on what HTTP application server you’re using. Mongrel sets it in a Const::MAX_BODY, I think.
File Upload is just a specially encoded POST request, so it won’t have much effect on limits, if any.