title: How to remove post parameters on temporary redirect (HTTP 307)?
body: <p>I have a problem with redirecting requests. I have an incoming <a href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods" rel="nofollow">GET</a> or <a href="http://en.wikipedia.org/wiki/POST_%28HTTP%29" rel="nofollow">POST</a> for <code>http://foo.com/bar?A=b</code>. I redirect it with HTTP 307 to <code>http://hockily.com/dockily?C=d&amp;E=f</code>.</p>
  
  <p>But at hockily.com , I have both the A, C and E. A is on GET parameters, C and E are on POST parameters. I need to remove the A. I should not send it. How can I do that?</p>
  
  <p>I'm using Java's <code>Response</code> for a return like</p>
  
  <pre><code>return Response.temporaryRedirect(
      URI.create((String) s.get("redirectString"))
  ).build();
  </code></pre>
  
  <p>Please feel free to comment for extra information that I couldn't think of to provide.</p>