Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cgi module doesn't process query string values with POST, old bug report

4 views
Skip to first unread message

Irmen de Jong

unread,
Nov 10, 2003, 4:50:30 PM11/10/03
to
Hello

I've got a nuisance with the cgi module. (Python 2.3.2)
When processing a HTTP POST request, it ignores the
query string parameters that may also be present.
I.e. only the parameters from the POST body are processed.

I've looked at a rather old bug report on SF;
http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=411612

but that bug is closed. The last comment is from Steve Holden,
and it says "...My approach will be to have the new functionality
depend on the provision of additional keyword arguments..."

Can somebody comment on this? (Steve?) I can't seem to find any
of this logic in the current (2.3.2) cgi.py module.

Is it in there somewhere or has this bug been forgotten?


I have now added some code myself after creating a FieldStorage
object, to parse any additional query args using cgi.parse_qsl.
This way any query args are added to my form fields, possibly
overwriting the fields that were sent in the POST body.

But Steve's comment in the old bug report made me wonder
why the standard cgi module doesn't include this possibility.


--Irmen de Jong

John J. Lee

unread,
Nov 10, 2003, 5:10:03 PM11/10/03
to
Irmen de Jong <irmen@-NOSPAM-REMOVETHIS-xs4all.nl> writes:

> I've got a nuisance with the cgi module. (Python 2.3.2)
> When processing a HTTP POST request, it ignores the
> query string parameters that may also be present.

[...]

I've forwarded this to the web-sig list, where discussions about this
issue have been taking place. The discussions have mostly been about
adding a new module (mostly to decouple web frameworks from the
facilities that web hosting providers offer), but I don't see why the
old cgi module shouldn't be dealt with at the same time.

http://mail.python.org/mailman/listinfo/web-sig/


John

Irmen de Jong

unread,
Nov 10, 2003, 5:22:41 PM11/10/03
to
John J. Lee wrote:
> I've forwarded this to the web-sig list, where discussions about this
> issue have been taking place.
[...]
> http://mail.python.org/mailman/listinfo/web-sig/

Thanks, John!
I'll keep an eye on the mailing list too.

--Irmen


0 new messages