Is There a CGI Expert In the House?? Good Grief!!
Fredrik Lundh
fredrik at pythonware.com
Tue May 1 18:46:54 EDT 2001
Ben Ocean wrote:
> 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.
doesn't matter much if you don't have a clue what you're doing.
> What the &*()$)*_% is a data buffer and how the &*(&*% do I get the data
> out of it?
did you try reading from the stdin stream?
data = sys.stdin.read()
or perhaps:
data = sys.stdin.read(int(environ['CONTENT_LENGTH']))
More information about the Python-list
mailing list