CGI GET vs. POST

Thomas Heller theller at python.net
Fri Apr 5 10:29:11 EST 2002


[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.

Thomas





More information about the Python-list mailing list