CGI GET vs. POST

Thomas Heller theller at python.net
Fri Apr 5 14:11:38 EST 2002


"Gerhard Häring" <gerhard at bigfoot.de> wrote in message news:slrnaars0t.og.gerhard at developer2.opus-gmbh.net...
> In article <a8kfse$teqtj$1 at ID-59885.news.dfncis.de>, Thomas Heller wrote:
> > [replying to my own post]
> > "Thomas Heller" <theller at python.net> wrote in message news:a8k613$suseq$1 at ID-59885.news.dfncis.de...
> >> I'm trying to use the cgi module in a CGI script,
> >> but encountered a problem.
> >>
> > [snip}
> >>
> >> If I use method=POST in the CGI-script, the
> >> "keyword" is found as a field in FieldStorage,
> >> but NOT if I use method=GET.
> >> Is FieldStorage only usable with POST?
> >>
> >
> > Problem solved, although I don't understand why.
> > Maybe someone can enlighten me?
> >
> > The script was in a file pyhelp.cgi on the server,
> > and I called it with 'http://...../pyhelp' when it did
> > not work.
> > Calling it with 'http://..../pyhelp.cgi' made it work.
>
> Ask yourself: why should this have worked?
>  Just because not providing the
> extension for executables does work on Windows? ;-)


It was a typical beginners mistake in this case (not with
Python for me, but with CGI on a *linux* machine ;-):
In addition to the pyhelp.cgi script there was a pyhelp script
around in this directory.

Thanks anyway,

Thomas





More information about the Python-list mailing list