Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19528

Patching CGIHTTPServer.py

From Giovanni Funchal <gafunchal@gmail.com>
Date 2012-01-27 22:48 +0000
Subject Patching CGIHTTPServer.py
Newsgroups comp.lang.python
Message-ID <mailman.5160.1327704566.27778.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi everyone,

I was fiddling around with CGIHTTPServer.py --- a very handy module
for quickly setting up a full HTTP server with CGI support --- when I
noticed that it doesn't support responses other than "200 OK". So, for
instance if your page wants to do a redirect (response 303), it just
isn't supported. I think this is a major drawback that can be easily
overcome and I'd very happily contribute that as an enhancement.

But... I'm new to Python and as a matter of fact web programming as a
whole isn't really my specialty. I was thinking that maybe someone
could spend half an hour looking at my solution and help raising it's
quality to the level I can submit it as a patch proposal.

Cheers,
-- Giovanni

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Patching CGIHTTPServer.py Giovanni Funchal <gafunchal@gmail.com> - 2012-01-27 22:48 +0000
  Re: Patching CGIHTTPServer.py Miki Tebeka <miki.tebeka@gmail.com> - 2012-01-28 08:04 -0800
    Re: Patching CGIHTTPServer.py Giovanni Funchal <gafunchal@gmail.com> - 2012-02-01 21:24 +0000
  Re: Patching CGIHTTPServer.py Miki Tebeka <miki.tebeka@gmail.com> - 2012-01-28 08:04 -0800

csiph-web