title: How To retrieve a Set-Cookie header from jsoup?
body: <p>We try to use jsoup for retrieving a page from a dedicated server, mix certain HTML in and then return that html in a HTTPServletResponse. Works fine for our requirement. We need to pass the headers from the server that we request back to the client that requests our servlet. This also works fine basically by copying over the received headers to the response. However, if the requested server issues a <strong><code>Set-Cookie</code></strong> header, this one is stripped from the response and so cannot be returned back from the servlet.</p>
  
  <p>At the moment I have no idea of how we can access the <strong><code>Set-Cookie</code></strong> header from within the jsoup result.</p>
  
  <p>Any idea (besides switching the framework) is welcome.</p>