CGI GET vs. POST

Gerhard Häring gerhard at bigfoot.de
Fri Apr 5 13:43:44 EST 2002


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? ;-)

Gerhard



More information about the Python-list mailing list