Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limitation in "Post"ing

Status
Not open for further replies.

HoMyGod

Programmer
Jul 17, 2000
59
CH
Hi,

is there a limitation with the "post" method?
<form method=&quot;post&quot; action=&quot;...&quot;>
.
.
.
I mean, what is the maximum size if the field or the maximum number of input?
<input type=&quot;text&quot; class=textbox value=&quot;tutu&quot; name=&quot;aNameNb34&quot; size=&quot;20&quot; maxlength=&quot;30&quot;>


Thanx a lot
 
its a lot... more then when using the querystring i believe. luciddream@subdimension.com
 
What do you mean with querystring? I am looking in a way to transmit a lot of &quot;input&quot; to another file using post (and then to recover the infos with a request.getParameter). I would like to avoid the ENCTYPE=&quot;multipart/form-data&quot; that put a total chaos in the mapping of the inputs.

Is there another way to do that?
 
post, and get are basically the same thing ( I am not sure, but are those the only two method when giving the data to another page? )

post just allows the other end to get the information without it being shown up in the top address bar, or seen in the URL (such as in ASP, you would have to use request.form(&quot;variable&quot;) etc)

where as get, does the same, except it shows it in the URL tag, ?var=value&..., (in ASP this would be request(&quot;variable&quot;) like all the other requests)

far as limitations on either goes, I have yet to hit a large number, especially if you create an array of form values (same variable name, just different values everytime) Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, HTML/Dhtml, Visual InterDev 6(ASP/WebProgramming/Vbscript)

 
you don't need multipart/form-data unless you are sending files... if you're not... any method of sending the form data works...


the querystring is when the data is loaded into the url.

it looks something like this:


post transmits it to your cgi with a buffer..

there isn't really that much of a difference between the two methods, except that the user can see the data in the querystring, and i think you can hold more data using post.

i'm not positive, but, i don't think there is a limit to how much data you can send using post. luciddream@subdimension.com
 
Actually, I have a problem of limitation. I send about 70 form using post method. I recover my info by using a request.getParameter(&quot;theNameOfTheForm&quot;) function. The 2-4 last fields are ko. But it don't follow a rule. Sometime I loose half of the sentence, sometime more...it is very curious and I wonder if the integrity of the datas is correctly respected during the transmission...
 
what language are you using to get the data? luciddream@subdimension.com
 
Hi,

From what I understand one difference is that GET submits name/value pairs as POST sends a copy of the form's content as a data block. It is suppose to be easier to grab and process the data submitted from a POST because it can pass more information in a cleaner fashion.

Please don't ask me why...

Bye.
Un fromage havarti en vaut deux.
 
Yes, I agree with all of you, POST is better than GET, I have already tried both possibilities and there is no doubts, POST is better. But I still don't know what are the limits of the POST or if there is another alternative or maybe a possibility to extend the size we can transmit...I know that one solution would be to use a multipart/form-data that is usually used to transmit files or pictures, but we can use it just for FORM too. The problem is that there is no order in the transmission of the strings.

MultipartRequest multi = new MultipartRequest(request, aTempDir);

Enumeration params = multi.getParameterNames();
while (params.hasMoreElements())
{
String name = (String)params.nextElement();
String value = multi.getParameter(name);

Something like this allows you to do that...

So, if anybody has a suggestion that can help me to transmit all my strings, thanx.

H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top