How to forward an HTTP POST request with headers and body on a Jersey endpoint to an external endpoint without using redirects?
This does not help as it redirects the request and does not forward it. This does something similar. This does it for internal endpoints.