title: PHP Symfony2 Redirect with POST data
body: <p>I am implementing a payment gateway in my e-commerce application. On success/failure, it returns a JSON response on a given URL(for both success and failure). Depending on the state, I have to redirect it to success and failure URLs with POST data. I need two different URLs(success &amp; failure) for analytic reasons.</p>
  
  <p>My project is on Symfony 2.0</p>
  
  <p>Now I know Symfony has a way to redirect.</p>
  
  <pre><code>$this-&gt;redirect($this-&gt;generateUrl('pg_success'));
  </code></pre>
  
  <p>But I cannot send POST data this way.</p>
  
  <p>Also, there is a way to call another action using forward and send arguments</p>
  
  <pre><code>$this-&gt;forward('DemoBundle:Checkout:pgsuccess', $_POST);
  </code></pre>
  
  <p>But this does not change the URL in the address bar.</p>
  
  <p>Is there a way to perform a URL redirect through which I can send arguments?
  Or some similar solution?</p>