473,388 Members | 1,327 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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

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/?grou...ail&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

Jul 18 '05 #1
2 2023
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
Jul 18 '05 #2
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
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Åstrand | last post by:
There's a new PEP available: PEP 324: popen5 - New POSIX process module A copy is included below. Comments are appreciated. ---- PEP: 324 Title: popen5 - New POSIX process module
1
by: A. Lloyd Flanagan | last post by:
OK, I've got a weird one I haven't been able to figure out yet. Admittedly I haven't had time to dig into the library source, but this behavior certainly doesn't seem right. Here's a test case: ...
18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
5
by: Bruce Lawrence | last post by:
I'm running Access 97 and my modules are looping if someone puts an invalid value in. The setup: 3 macros - get_clock_num, verify_clocknum, append_to_history 3 functions. each in their own...
30
by: Franck PEREZ | last post by:
Hello, I'm developing a small XML marshaller and I'm facing an annoying issue. Here's some sample code: ########### My test application ############ class Foo(object): #The class I'd like to...
5
by: teddysnips | last post by:
I have to write an application to do some data cleansing. It's a Contact database, but over a number of years there are multiple companies which are all essentially the same entity. For each...
11
by: Steve | last post by:
Hi All, I'm having a tough time converting the following regex.compile patterns into the new re.compile format. There is also a differences in the regsub.sub() vs. re.sub() Could anyone lend...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
by: Gabriel Genellina | last post by:
En Mon, 28 Apr 2008 02:08:31 -0300, tarun <tarundevnani@gmail.comescribió: By default, each time you do d you get a *different* object. A shelve isn't very smart: it stores a string...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.