Change in cgi handling of POST requests
Aahz
aahz at pythoncraft.com
Sat Feb 21 10:01:38 EST 2009
[posted & e-mailed]
In article <e230c5e2-1d7c-4258-8cc0-d78da6304e4e at 13g2000yql.googlegroups.com>,
Mac <bob.uuca at gmail.com> wrote:
>
>We just upgraded Python to 2.6 on some of our servers and a number of
>our CGI scripts broke because the cgi module has changed the way it
>handles POST requests. When the 'action' attribute was not present in
>the form element on an HTML page the module behaved as if the value of
>the attribute was the URL which brought the user to the page with the
>form, but without the query (?x=y...) part. Now FieldStorage.getvalue
>() is giving the script a list of two copies of the value for some of
>the parameters (folding in the parameters from the previous request)
>instead of the single string it used to return for each. I searched
>this newsgroup looking for a discussion of the proposal to impose this
>change of behavior, and perhaps I wasn't using the right phrases in my
>search, but I didn't find anything.
Interesting. Nobody has responded, so I suggest first filing a report
using bugs.python.org and then asking on python-dev (with reference to
your report).
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Weinberg's Second Law: If builders built buildings the way programmers wrote
programs, then the first woodpecker that came along would destroy civilization.
More information about the Python-list
mailing list