title: Send http headers from servlet to app in another environment
body: <p>I need to send a request from a servlet to an application running in other environment (IIS) with certain information in custom headers.</p>
  
  <p>I know redirecting doesn't send the headers and <code>getServletContext().getRequestDispatcher(url)</code> is to be used in the servlet's context only. Has anybody made this work in some other way? I was thinking in using <code>HttpURLConnection</code>, but would it finally redirect the browser to the targeted app ?</p>
  
  <p>Thanks in advance</p>