users@jersey.java.net

[Jersey] GET request Redirect to POST

From: Garrett Baird <garrett_at_walletron.com>
Date: Wed, 27 Mar 2013 01:33:22 +0000

Hello all,

How do I receive a GET request in Jersey and redirect to another URL but convert the query string values to a POST request with the former query string parameters as POST parameters?

The use case is a GET request from an email campaign management system (not POST friendly) where my server then needs to return a non-HTML file or redirect to a web page. For the web page redirect, I am just recreating the initial query string and using Response.seeOther(URI). I want to POST to that URL instead.

Thanks in advance!

-Garrett