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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POST limit?

Status
Not open for further replies.

tsherfy

Programmer
Dec 23, 2000
20
US
Is anyone aware of there being a limit to how much data you can POST to a page? I have a 4 page survey that POSTS all the data from page 1 to page 2, all the data from pages 1 & 2 to page 3, etc. All is well until trying to load Page 4, which just hangs. If I delete about 15 items from the POST, it loads fine. I am posting roughly 80-100 items. Any thoughts?

TIA,

Tim
 
The problem is not in how much your posting, but probably in what your posting. Ie whatever is in the last several values is probably what is causing your problem (hanging). I have pages that post over that number of fields, and at one point I attempted to find the maximum number, I believe the highest I went was 15000 fields (gotta love for loops). I do remember having an issue with this at one point that concerned number oif fields, so this may have changed during an update from MS or might be because I am on 2k Server now and 2K professional before. As a test write a quick script that has a couple form tags and a for loop inside like so:
Code:
<html>
<body>
<form method=&quot;POST&quot; action=&quot;<%=Request.ServerVariables(&quot;SCRIPT_NAME&quot;)%>&quot;>
<%
'this part will only execute before submission
Dim i
If Request.Form(&quot;txt1&quot;) = &quot;&quot; Then
   for i = 1 to 1000
      %><input type=&quot;text&quot; name=&quot;txt<%=i%>&quot; value=&quot;testinglotsnumbers - <%=i%>&quot;><br><%
   next
Else
'This part will only execute after submission
   dim item   
   For each item in Request.Form
      Response.Write item & &quot;<br>&quot;
   Next
End If
%>
<input type=&quot;submit&quot;>
</form>
</body>
</html>

That will create 1000 text inputs the first time you access the page, then when you submit it it will loop back through the Request collection outputting all the values you posted.

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
Thanks, I'll give it a shot. I also found an article that stated that POST data was limited to 32k, so I suppose that could be the issue as well.

I appreciate your input.

Tim
 
Could you point me to the article? I'd like to see something definitive one way or the other, I'd been assuming it was number of objects in the collection when, I guess, size of collection is probably more imprtant :)
-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
Here's the URL to the aforementioned article:


The information I referenced is in the second paragraph in the section titled &quot;Sending With Method POST&quot;.

There is also a pdf document with more details offered, which I downloaded, but haven't had a chance to go through yet.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top