Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Maximum post data length

Thread Tools

Maximum post data length

Tim Johnson
Posts: n/a
I am currently using python 2.6.
For years I have used my own cgilib module which in turn uses the
stand python cgi library module.

The implementation is :
self.form = cgi.FieldStorage(keep_blank_values=1)

I'm looking for an approach that would enable both client- and
server-side validation without duplication or writing additional

Here's one approach I am considering:
The form holds a hidden field with a "magic" name that can be read
both from the DOM on the client side and from the cgilib module on the
server side. The value for the field would be a json structure that
would have as the upper-level keys field names and values would be
in turn be json-like (dictionary) values.
<input type="hidden" name="validator.descriptors"
value="{email_address:{req:1,type:email,label:Emai l Address},
name:{req:0}}"> etc ....

The kicker might be that I have one series of forms that have
hundreds of elements. I could end up with the value of
`validator.descriptors' being thousands of bytes long.

And don't bother to tell me that forms that large are nuts, you'd
be preaching to the long converted.

Does anyone know if the cgi module might choke on the size of a
POST'ed field OR the total length of the posted form data?
POST method only.

And that is plan A (I have plans B and C)
tim at or
Reply With Quote

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
Maximum size of POST data? ASP General 1 09-28-2006 12:43 PM
Creating the maximum number of menus and maximum number of stills rossco DVD Video 2 11-24-2005 09:33 PM
Application_Error and Maximum request length exceeded Jacky Kwok ASP .Net 2 06-24-2005 08:24 AM
The number name 'System.Web.UI.WebControls' contains more than the maximum number of prefixes. The maximum is 3. mayur ASP .Net Web Controls 2 07-16-2004 05:14 PM
The number name 'System.Web.UI.WebControls' contains more than the maximum number of prefixes. The maximum is 3. mayur ASP .Net 2 07-02-2004 10:35 AM