Re: Redirect GET to POST
"Joseph S. Tate" <[email protected]> Tue, 13 Jun 2017 16:35:43 +0000
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <CA+WDQbEqhcq-XQpQquxm66R_LR7Mu0B5DgrgCu7ZH06yGqfX2g@mail.gmail.com> |
Don't. Make that first GET endpoint a POST endpoint and do the work there directly. Why do two requests when one will do? On Tue, Jun 13, 2017 at 12:31 PM Aaron Dalton <[email protected]> wrote: > I'm using the MethodDispatcher to create a RESTful API. I have a GET > endpoint that returns a form that then POSTs to another endpoint. In one > particular case, I want that GET endpoint to auto-redirect to the POST > endpoint with prefilled data. How can I accomplish this? > > -- > You received this message because you are subscribed to the Google Groups > "cherrypy-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] > To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] > Visit this group at https://groups.google.com/group/cherrypy-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout.