title: send xml file via HTTP Post redirect to another server
body: <p>After receiving a post request in servlet, I have to do a redirection to another server and at the same time I have to pass an xml file in the redirection request.</p>
  
  <p>For example, I have to do a redirection from my servlet to "<a href="http://www.abc.com" rel="nofollow">http://www.abc.com</a>" and pass an xml file in the request.</p>
  
  <p>I tried the following, but it didn't work.</p>
  
  <ol>
  <li><code>response.sendRedirect</code> - it is creating only get requests, so not able to send xml</li>
  <li>HttpClient or URLConnection - it is creating a new request, not doing the actual     redirection</li>
  <li>Intermediate jsp - forwarded the request to a intermediate jsp and did a submit from jsp.</li>
  </ol>
  
  <p>It is sending the xml in parameter and not in InputStream</p>
  
  <p>Please let me know how to achieve this.</p>