HTTP POST redirect

Is there a way to create an HTTP POST redirect? So when the user is
redirected, the browser visits that URL but POSTs to it instead of
GETting it.


I just did a brief demo and the browser will GET the redirected URL.
Bummer. Any other ideas?


You can try doing this using curl. This example is in php but
there's a ruby lib out there too.

$g = curl_init();
curl_setopt($g, CURLOPT_POST, 1);
print curl_exec($g);

You could also do this by loading a page using a GET then using
javascript to click on a form post button on the window load.