You might also want to look into HTTP Response Code 307, but depending on your implementation, and the Browser's you intend to support, it may not work consistently.
On Thu, May 5, 2011 at 9:13 AM, Donald Tyler <chekot...@gmail.com> wrote: > A redirect by it's very nature cannot send any POST data. It's not a > limitation of Symfony, but the HTTP protocol itself. > > You have two ways to accomplish this: > > 1. Server side: Have the controller make the POST request, get the > response, and then relay that to the client. > > 2. Client side: Have a second page that the controller redirects the client > to, that then immediately carries out the POST request. > > Depending on the exact setup, there could be security concerns with the > client side implementation. > > > On Thu, May 5, 2011 at 8:29 AM, Elia Contini @Phiware < > elia.contini.at....@gmail.com> wrote: > >> Hi all, >> >> I have two problems and I didn't find any solution reading >> documentation, forums and googling. >> >> I'm using Symfony2 Beta1. I have a page with a form that sends the >> request to a Payment Service Provider (PSP). >> >> The PSP accepts only HTTP POST request. >> >> I want to create a controller action that validates data and sends >> them to the PSP page. >> >> First problem: >> This controller action shouldn't have a render page. How to >> disable render? >> >> Second problem: >> How to create a redirect that sends an HTTP POST request? >> >> Thanks in advance >> Elia >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony users" group. >> To post to this group, send email to symfony-users@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en >> > > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en