title: Forward a servlet request to another server
body: <p>Java Servlet API can forward requests to another path within the same server (<em>identical host:port</em>). But, forwarding to a different host:port — like proxy do — is another story.</p>
  
  <p>I've tried to do that with Jersey Client, adapting the <a href="http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html" rel="noreferrer">ServletRequest</a> — method, headers, mediatype and body — to a Jersey <a href="http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/client/ClientRequest.html" rel="noreferrer">ClientRequest</a> (<em>with a different base uri</em>), making the call, and adapting back the Jersey <a href="http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/client/ClientResponse.html" rel="noreferrer">ClientResponse</a> — method, headers, mediatype and body — to the <a href="http://docs.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html" rel="noreferrer">ServletResponse</a>.</p>
  
  <p>Adapting those manually seems wrong to me.</p>
  
  <p>Isn't there a pure Servlet API solution? 
  Or an HTTP client capable of adapting requests back and forth when changing the host:port?</p>