limit to POST length

Posted on 2002-07-12
Last Modified: 2010-05-18
The following test page seems to indicate that there is a 100K (1024*100) limit to the amount of data that can be POSTed to IIS ... does anyone know how to increase this limit?

<!------------------- PostLimitTest.htm ------------------->

<TITLE>Post Limit Test</title>
<SCRIPT language='javascript'>
 function loadData()
    var MAXLENGTH = 102400 - 1;  // change the 1 to 0 and it doesn't work!

    var data = "0123456789ABCDEF";

    while ( data.length < MAXLENGTH )
       data += data;

    data = data.substring(0,MAXLENGTH);

    document.myform.myhidden.value = data;

    document.myform.cmdSubmit.value="Data loaded, length is: " +  document.myform.myhidden.value.length;

<BODY onLoad='setTimeout("loadData()",1);'>

<FORM name='myform' method='post' action='PostLimitTest.asp' >
  <INPUT type='hidden' name='myhidden' value="" >
  <INPUT type='submit' name='cmdSubmit' value='Loading data, please wait ...' disabled >


<!------------------- PostLimitTest.asp ------------------->

Request Data Length: <%= len( request("myhidden") ) %>
Question by:knightEknight
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
  • +2
LVL 22

Expert Comment

ID: 7150164
var MAXLENGTH = 204800 - 1;  // change the 1 to 0 and it doesn't work!


var MAXLENGTH = 102400 - 1;  // change the 1 to 0 and it doesn't work!

does that work?
LVL 33

Author Comment

ID: 7150173
no ... the point is that any amount of data greater than 102400 in length will not post ... the ASP page reports an error.
LVL 33

Author Comment

ID: 7150178
I mean greater or equal  ...
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 22

Expert Comment

ID: 7150210
Made a test case on my development machine and it works flawless. Did 204800 flawlessly. But when I wrote the string out my machine had trouble rendering it :-/

My machine: Windows XP, Internet Explorer 6.

LVL 33

Author Comment

ID: 7150220
ok ... that makes me think there is a value I can set on the server ... or maybe in the form-tag ... content-length="102401" ...  I'm looking into it.  Thanks!
LVL 46

Expert Comment

ID: 7150232
Is this relevant? It seems like this might be related:;EN-US;q260694

Fritz the Blank
LVL 33

Author Comment

ID: 7150321
thanks fritz, that just might be it ...
I won't have access to the server until Monday however, so I'll have to check into it then.  Thanks again, both of you.
LVL 11

Expert Comment

ID: 7150556
Kek - definately not on the form tag.
the registry value looks likely - only thing is you will be opening your self up for a denial of service attack.


Accepted Solution

daniel_c earned 50 total points
ID: 7151953
Or probably this is another solution from Microsoft?;EN;q273482

Expert Comment

ID: 7151955
So far, to deal with a huge data, if "post" can not handle that, I use a trick by using some asp upload component (I used to use ASPSmartUpload -
So, in the form, it will be:
<FORM name='myform' method='post' action='PostLimitTest.asp' ENCTYPE="multipart/form-data">

AND in the target file (PostLimitTest.asp) will be:

   Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")


   hiddenData = mySmartUpload.Form("myhidden")


   set mySmartUpload = nothing

This trick works for me. Hopefully it works for you too.


LVL 33

Author Comment

ID: 7155304
This article correctly identified the problem ... which is not with the _total_ amount of form data being posted, but rather with the limit placed on a single form field in ASP(100K).  The solutions are to  1) break up the field into smaller chunks, or  2) use Request.BinaryRead ... but the latter solution leaves me no way to parse the data as a string ... so I'll have to go with the first way (which is cumbersome) unless someone can help me with # 2 (for more points, ofcourse!)

Thanks everyone!  This has been an education.

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
If-Then-Else ASP problem 6 72
How to alternate between 2 messages until page closes in Classic ASP 8 41
Html split(text) 2 32
GitHub 1 10
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question