[Python-bugs-list] [ python-Bugs-596866 ] cgi module: order of multiple values

noreply@sourceforge.net noreply@sourceforge.net
Wed, 21 Aug 2002 12:25:17 -0700


Bugs item #596866, was opened at 2002-08-18 16:31
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=596866&group_id=5470

Category: Documentation
Group: Python 2.2.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Robert Siemer (siemer)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: cgi module: order of multiple values

Initial Comment:
The cgi module documentation is misleading in "Higher
Level Interface"
(http://python.org/doc/current/lib/node296.html).

The order of multiple values for the same name "may
vary from browser to browser and should not be counted
on". This should not be true.

It is instead true that the order is fixed for the mime
types application/x-www-form-urlencoded and
multipart/form-data (probably all types that the cgi
module is handling).

User agents should send these values in the order they
appear in the document as e.g. stated in the latest
HTML 4 recommendation on
http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4

Bye,
	Robert

----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-08-21 15:25

Message:
Logged In: YES 
user_id=3066

I maintain that the documentation is correct, though it may
be clarified somewhat.  A CGI script should not rely that
browsers fully conform to the latest version of every
specification, even the HTML specification.  There's nothing
to prevent a client from submitting a request based on an
older version of a form, or without a form at all.

I've added the clarification in Doc/lib/libcgi.tex revisions
1.37 and 1.35.4.2.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=596866&group_id=5470