help: cgi "post" problem (client side)

piet at cs.uu.nl piet at cs.uu.nl
Fri May 4 07:52:47 EDT 2001


>>>>> "Gilles Lenfant" <glenfant.nospam at bigfoot.com> (GL) writes:

GL> Hi,
GL> I'm making some CGI tests with Win98 and MS Personal Web Server.

GL> I installed this simple test cgi script:

GL> =======test.py=======
GL> import cgi
GL> cgi.test()
GL> =====================
....
GL> But when I do this through this script, this goes to a deadlock:

GL> =======runcgi.py=======
GL> import urllib
GL> params = {'param1': 'data1', 'param2': 'data2'}
GL> cparams = urllib.urlencode(params)
GL> # Deadlock in next line
GL> fh = urllib.urlopen('http://localhost/cgi-bin/test.py', cparams)
GL> # No deadlock with no "cparams" like this
GL> # fh = urllib.urlopen('http://localhost/cgi-bin/test.py')
GL> =======================

GL> But aren't the HTML and runcgi.py supposed equivalent ?
GL> Did I miss something or should I use Apache or another Web server ?
GL> Thanks in advance for any hint.

It works with Apache (on Windows 2000).
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list