Is There a CGI Expert In the House?? Good Grief!!

Gerhard Häring gerhard.nospam at bigfoot.de
Wed May 2 00:47:35 CEST 2001


Ben Ocean wrote:
> 
> Hi;
> I have been trying DESPERATELY to get the answer to this question. I was
> under the impression that Python was an ideal language for CGI scripting.
> Now, would SOMEONE PLEASE answer this question:
> 
> Scenario:
> My client, BladeChevy.com, frames around Kelley Blue Book (KBB.com). The
> visitor fills out a form on KBB.com's page and submits it. The info is sent
> back to BladeChevy.com to a page I specify (in the cgi-bin directory). The
> data is sent back via the *data buffer*
> 
> Question:
> What the &*()$)*_% is a data buffer and how the &*(&*% do I get the data
> out of it?

I don't know about a "data buffer". The data is sent via HTTP POST. The
Python cgi module transparently manages the CGI methods GET and POST.
Just use the cgi module with cgi.FieldStorage() and friends, there is
really no magic to it. If in trouble, use this simple script to see
what's going on:

#!/usr/bin/env python
import cgi
cgi.test()

Gerhard
-- 
Sorry for the fake email, please use the real one below to reply.
contact: g e r h a r d @ b i g f o o t . d e
web:     http://highqualdev.com



More information about the Python-list mailing list