cgi post question
Felicia Neff
fn at panix.com
Fri Sep 17 10:40:07 EDT 1999
Thanks, I was pointed to:
urlpost.py at http://starship.python.net/~jjkunce/
which uses urllib and solves my problem. :)
-- Felicia
On Fri, 17 Sep 1999, Fredrik Lundh wrote:
> Felicia Neff <fn at panix.com> wrote:
> > I am trying to write a CGI script that takes input from a POST, modifies
> > some of the input and then POSTs that info to another CGI script. I know
> > that perl has a function that will do this. Is there such a function in
> > python (and if it is do_POST() from the CGIHTTPServer module, is there any
> > more documentation besides that at
> > http://www.python.org/doc/current/lib/module-CGIHTTPServer.html?)?
>
> CGIHTTPServer is a web server implementation. you're
> probably more helped by the urllib client library:
> http://www.python.org/doc/current/lib/module-urllib.html
>
> import urllib
> ...
> result = urllib.urlopen(myurl, mydata)
>
> (currently limited to application/x-www-form-urlencoded
> posts, by some strange reason).
>
> hope this helps!
>
> </F>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fn at panix.com Felicia Neff
Broadcasting live from Oregon (541)686-8025
More information about the Python-list
mailing list