Fwd: POST example?

Clodoaldo Neto <[email protected]> Fri, 13 Nov 2009 08:56:23 -0200
Newsgroups gmane.comp.python.mod_python
Message-ID <[email protected]>
---------- Forwarded message ----------
From: James Newton <[email protected]>
Date: 2009/11/13
Subject: Re: [mod_python] POST example?
To: [email protected]


I may be misunderstanding it, I'm assuming POST and GET are handled
the exact same way? The curl command would be like so: curl -F
'postvar=<-' http://url.tld/. I used the example on that website for a
get var, but using it for post just created another get? I may not
being reading into this right.
James

On Fri, Nov 13, 2009 at 3:07 AM, Clodoaldo Neto
<[email protected]> wrote:
>
> 2009/11/13 James Newton <[email protected]>:
> > Hi,
> > After looking around I can't seem to find a really straight forward example
> > of how to POST, all I can seem to figure out is GET. Currently I'm trying to
> > figure this out so I can post to a page with curl, rather then post via a
> > form, after asking around and getting turned away with "don't use
> > mod_python" on most occasions, I was hoping someone on this list could give
> > me an example of how to post/store post data.
>
> You mean you can read data posted by an html form and can't do it when
> it is posted by curl? If so show what is your curl code.
>
> If what you are looking for is how to read data posted by any means read:
>
> http://webpython.codepoint.net/mod_python_tutorial
>
> Regards, Clodoaldo
>
> > Thanks,
> > James Newton
> >
> > _______________________________________________
> > Mod_python mailing list
> > [email protected]
> > http://mailman.modpython.org/mailman/listinfo/mod_python
> >
> >