server side parameters
Doug Epling <[email protected]> Tue, 05 Jan 2010 21:02:29 -0500
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
Sorry, but I really need a boost here. I might be dense, but I can not get a 'script.py' file with a greet(req, name) function to accept either POST or GET arguments. I am getting a 403 Forbidden server error. Where might I read about server side parameters? Thanks. Graham From james at sindacio.us Fri Nov 13 02:45:00 2009 From: james at sindacio.us (James Newton) Date: Fri Nov 13 02:45:10 2009 Subject: [mod_python] POST example? In-Reply-To: <c2f9e3c20911122342g58179609s1bb0046b24ac6240-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> References: <c2f9e3c20911122342g58179609s1bb0046b24ac6240-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Message-ID: <c2f9e3c20911122345i3812ac58qc69974240f980a65-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 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. Thanks, James Newton -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20091113/8048f618/attachment.html From graham.dumpleton at gmail.com Fri Nov 13 04:26:17 2009 From: graham.dumpleton at gmail.com (Graham Dumpleton) Date: Fri Nov 13 04:26:26 2009 Subject: [mod_python] POST example? In-Reply-To: <c2f9e3c20911122345i3812ac58qc69974240f980a65-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> References: <c2f9e3c20911122342g58179609s1bb0046b24ac6240-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> <c2f9e3c20911122345i3812ac58qc69974240f980a65-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Message-ID: <88e286470911130126m21222b57v8270616a602069ce-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Read: http://webpython.codepoint.net/mod_python_tutorial First result for Google on 'mod_python tutorial'. Graham 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. > Thanks, > James Newton > > _______________________________________________ > Mod_python mailing list > [email protected] > http://mailman.modpython.org/mailman/listinfo/mod_python > > From clodoaldo.pinto.neto at gmail.com Fri Nov 13 05:56:08 2009 From: clodoaldo.pinto.neto at gmail.com (Clodoaldo Neto) Date: Fri Nov 13 05:56:12 2009 Subject: Fwd: [mod_python] POST example? In-Reply-To: <a595de7a0911130107y1067a22exd498225e8aa4baf3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> References: <c2f9e3c20911122342g58179609s1bb0046b24ac6240-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> <c2f9e3c20911122345i3812ac58qc69974240f980a65-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> <a595de7a0911130107y1067a22exd498225e8aa4baf3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Message-ID: <a595de7a0911130256i78bb0c99yce88dcbdca1c959f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Forgot to post to the list. Clodoaldo ---------- Forwarded message ---------- From: Clodoaldo Neto <[email protected]> Date: 2009/11/13 Subject: Re: [mod_python] POST example? To: James Newton <[email protected]> 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 > > From clodoaldo.pinto.neto at gmail.com Fri Nov 13 05:56:23 2009 From: clodoaldo.pinto.neto at gmail.com (Clodoaldo Neto) Date: Fri Nov 13 05:56:25 2009 Subject: Fwd: [mod_python] POST example? In-Reply-To: <c2f9e3c20911130153y4f16535bg2759654e7cf92c86-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> References: <c2f9e3c20911122342g58179609s1bb0046b24ac6240-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> <c2f9e3c20911122345i3812ac58qc69974240f980a65-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> <a595de7a0911130107y1067a22exd498225e8aa4baf3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> <c2f9e3c20911130153y4f16535bg2759654e7cf92c86-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> Message-ID: <a595de7a0911130256i6c82a8c4o1dfb199726e12a73-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> ---------- 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 > > > >