Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Is there a size limit of form data that can be submitted?

Reply
Thread Tools

Is there a size limit of form data that can be submitted?

 
 
Guy
Guest
Posts: n/a
 
      12-05-2003
If a form has a TEXTAREA and a SUBMIT button, how much text can a user type
in the textarea? What I mean is, what is the limit of characters that can
be submitted from the HTML form?

I can't imagine 2000 characters being sent in a URL so I suppose I would use
POST instead of GET, but does anyone know if and what the limit is?

Guy


 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      12-05-2003
in post <news:MQ_zb.5018$>
Guy said:

> If a form has a TEXTAREA and a SUBMIT button, how much text can a user type
> in the textarea?


it depends on the user agent.

> What I mean is, what is the limit of characters that can
> be submitted from the HTML form?


pre HTML4 attribute values were limited to 1024 chars. HTML4 changed to
64k chars which is SGMLs max value however:

"These are the largest values permitted in the declaration. Avoid fixed
limits in actual implementations of HTML UA's"
http://www.w3.org/TR/html4/sgml/sgmldecl.html

--
brucie
05/December/2003 10:41:52 pm kilo
 
Reply With Quote
 
 
 
 
Hywel Jenkins
Guest
Posts: n/a
 
      12-05-2003
In article <bqpv26$241ln8$>, brucie01
@bruciesusenetshit.info says...
> in post <news:MQ_zb.5018$>
> Guy said:
>
> > If a form has a TEXTAREA and a SUBMIT button, how much text can a user type
> > in the textarea?

>
> it depends on the user agent.
>
> > What I mean is, what is the limit of characters that can
> > be submitted from the HTML form?

>
> pre HTML4 attribute values were limited to 1024 chars. HTML4 changed to
> 64k chars which is SGMLs max value however:


Was that 1024 limit on GET rather than POST, though? IIRC the limit was
quite ambiguous, depending on the UA, as you said, though Netscape
documentation mentioned 2,048 some time ago.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      12-05-2003
Hywel Jenkins wrote:

> In article <bqpv26$241ln8$>, brucie01
> @bruciesusenetshit.info says...
>
>>> What I mean is, what is the limit of characters that can
>>> be submitted from the HTML form?

>>
>> pre HTML4 attribute values were limited to 1024 chars. HTML4 changed to
>> 64k chars which is SGMLs max value however:

>
> Was that 1024 limit on GET rather than POST, though?


Neither. It was a limit on the input control itself.

URLs do not have a limited length, so in particular, there is no limit to
the size of a GET request.

Certainly any sized file can be transmitted in an HTTP POST request (think
file upload forms), so the size of a POST request must also be unlimited.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      12-05-2003
in post <news: et>
Hywel Jenkins said:

>> pre HTML4 attribute values were limited to 1024 chars. HTML4 changed to
>> 64k chars which is SGMLs max value however:


> Was that 1024 limit on GET rather than POST, though?


theres no distinction. attribute values are just 64k

HTTP1.1 says it puts no limit on the length of GET and servers should be
able to handle it but if they cant return a 414.

IE<3 url limit is 1k, IE3+ 2k. opera<3.2 is 256. opera 3.5+ is 1k. (may
be more now but i couldn't find it). couldn't find anything for NS/moz

--
brucie
06/December/2003 08:19:13 am kilo
 
Reply With Quote
 
Leif K-Brooks
Guest
Posts: n/a
 
      12-06-2003
Toby A Inkster wrote:
> URLs do not have a limited length, so in particular, there is no limit to
> the size of a GET request.


Most servers do put a limit on GET length, though.

 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      12-06-2003
brucie <> wrote:

>>> pre HTML4 attribute values were limited to 1024 chars. HTML4
>>> changed to 64k chars which is SGMLs max value however:

>
>> Was that 1024 limit on GET rather than POST, though?

>
> theres no distinction. attribute values are just 64k


But attribute values are quite distinct from form field values.
Attribute values are something that resides in an HTML document,
whereas form field values are (normally) entered by the user.

In practical terms, it's best to stay well below 1024 characters,
though the actual limitations are usually somewhere around 2000.
More info: http://www.cs.tut.fi/~jkorpela/forms/methods.html#exc

(That means keeping URL length below 1024. And since you cannot know
the size of actual data submitted, it's safest you use method="POST"
for anything that isn't something like a search form submission with a
relatively small set of fields.)

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      12-06-2003
in post <news:Xns94491B4672D23jkorpelacstutfi@193.229.0.31 >
Jukka K. Korpela said:

>> theres no distinction. attribute values are just 64k


> But attribute values are quite distinct from form field values.
> Attribute values are something that resides in an HTML document,
> whereas form field values are (normally) entered by the user.


the way i was looking at it was that the text entered still ends up as
an attribute value of the element.

--
brucie
06/December/2003 10:48:26 am kilo
 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      12-06-2003
brucie <> wrote:

> the way i was looking at it was that the text entered still ends up
> as an attribute value of the element.


Nope. If I have, say, <input type="text" name="foo"> and you type "bar"
into the text input box corresponding to this element, as created by a
browser, then "bar" does not become any attribute value. If I had
<input type="text" name="foo" value="brucie">, the situation would be
the same; the value of the form field "foo" would be "bar", and
"foo=bar" would be inserted by the browser into the form data set, and
hence into the URL (when method="GET" is used), but this would not
change the element's attributes the least. (The value attribute would
still be _relevant_ too, if the form contains a reset button, which
shouldn't normally be there, but I digress.)

The input data, which becomes the value of a field, might be
accessible, via a Document Object Model, as a property of an element.
If it's called attribute in that context, that's misleading, but still
does not change the HTML element's attributes the least.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a file limit size of 2GB in JDK 1.5 zigzagdna Java 22 11-09-2011 03:11 AM
Is there a HD size limit with Linux? ian field Computer Support 8 09-29-2006 03:42 PM
c program, file size limit, how to solve? 2G bytes limit. guru.slt@gmail.com C++ 1 06-27-2005 11:05 PM
[Urgent] Is there a size limit on returning a large dataset or a large typed array from web service? Ketchup ASP .Net Web Services 1 05-25-2004 10:11 AM
Struts FormFile getFileData - is there a limit on the size of the data returned Ben Jessel Java 2 11-26-2003 02:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57