[issue1817] module-cgi: handling GET and POST together

2008-01-12 Thread Alexandre Fiori

New submission from Alexandre Fiori:

It looks like module-cgi cannot handle GET and POST together when using
FieldStorage. For instance, a  is available through cgi.FormContent but not
cgi.FieldStorage when there are other  in the html form.
Very strange.

--
messages: 59848
nosy: alef13
severity: normal
status: open
title: module-cgi: handling GET and POST together
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1817>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1817] module-cgi: handling GET and POST together

2008-01-12 Thread Alexandre Fiori

Alexandre Fiori added the comment:

Here it is, babe. I've made appropriate changes to make it read
QUERY_STRING when it's available within POST method. It's currently
being parsed by parse_qsl() in read_urlencoded() as it should be in
regular GET or POST. I didn't touch CONTENT_LENGTH since it has the size
of the POST data without QUERY_STRING's size. That would affect read()
of such POST data. It's working. Thanks for the incentive, it's my first
patch for python.

Added file: http://bugs.python.org/file9148/cgi.py.patch

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1817>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1817] module-cgi: handling GET and POST together

2008-01-15 Thread Alexandre Fiori

Alexandre Fiori added the comment:

Now I added support for parsing query string within multipart/*. The
only issue now is that it mixes FieldStorage with MiniFieldStorage.
However, I don't think it's a problem.

Added file: http://bugs.python.org/file9180/cgy.py.patch-1

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1817>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1817] module-cgi: handling GET and POST together

2008-02-23 Thread Alexandre Fiori

Alexandre Fiori added the comment:

Here's the unit test for patched cgi module.
There are three tests: one for HTML POST forms that are urlencoded, and
two for multipart/form-data - with and without file upload.

Added file: http://bugs.python.org/file9507/cgitest.py

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1817>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com