title: POST redirect for GET request
body: <p>I am looking at the best way to implement POST redirect. Consider this example:</p>
  
  <ol>
  <li>Customer receives the URL: <a href="https://domain-a.com" rel="nofollow">https://domain-a.com</a></li>
  <li>When customer clicks on this URL, we need to redirect the customer to <a href="https://domain-b.com" rel="nofollow">https://domain-b.com</a></li>
  <li>The redirect needs to be over HTTPS POST. In this redirect, some parameters would also be sent.</li>
  </ol>
  
  <p>I searched around for the best way to implement it so that it works for both JS enabled &amp; disabled browsers.</p>
  
  <p>HTTP protocol doesn't support POST redirect. I read about new HTTP status code 307 that can be used for redirect. However, it will not work for us. It says that redirect should happen in the same way as original request. In this case, original request is GET.</p>
  
  <p>The method which I am thinking is this:</p>
  
  <ol>
  <li>domain-a returns an HTML form with all the parameters. The form is present in noscript tag.</li>
  <li>Javascript is executed on body load to automatically submit the form to domain-b. I don't want to show the experience of "Submit" button to customer for which they don't need to take any action. It should look more like a normal redirect to them.</li>
  <li>JS disabled browser will see the form and they would need to manually click it.</li>
  </ol>
  
  <p>I am looking for feedback on any potential issues with this approach or better way to handle this case.</p>