Where O Where Did My Data Buffer Go?

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Thu May 3 01:50:27 EDT 2001


The problem here is, since the KBB server is using HTTP POST to send the
data, your sys.stdout stream is connected back to KBB.  THEY don't need
the data echoed back.

The data needs to be collected and sent via SMTP or saved to disk.

----- Original Message -----
From: "Sheila King" <sheila at spamcop.net>
Subject: Re: Where O Where Did My Data Buffer Go?


> Frame the KBB page, and make it so that the "callback" URL is a link to
some
> script in his web server's cgi-bin, and make the contents of the script be
> something like this:
>
> import cgi
>
> # instantiate form
> form = cgi.FieldStorage()
>
> # print HTML Header
> print "Content-type: text/html\n"
> print "<HTML><Head><Title>Test Page</Title></Head><Body>\n"
>
> # setting up to print form contents
> print "<br><h2>Here are the form contents:</h2>"
> print "<br>"
>
> # print form contents
> for field in form.keys():
>     print field, " = ", form[field].value, "<br>"
>
> # print closing remarks
> print "<br><br>"
> print "That's all she wrote!<br>"
>
> # print closing HTML tags
> print "</body></HTML>"
>
>
>
> If this doesn't work, I would sure like to know why.
>
> --
> Sheila King
> http://www.thinkspot.net/sheila/
> http://www.k12groups.org/






More information about the Python-list mailing list