title: How to get the response stream of browser in Java WebDriver program
body: <p>I need to validate the PDF report. I need to get the report embeded in HTML. If I read that URL using:</p>
  
  <p><code>File file = new File("url");</code> </p>
  
  <p>or </p>
  
  <p><code>HttpWebConnection.getResponse();</code></p>
  
  <p>it requests the URL in separate session, hence it cannot get the file.</p>
  
  <p>Does ieDriver have something like HtmlUnit?</p>
  
  <p><code>HttpWebConnection.getResponse()</code></p>
  
  <p>or somebody can suggest alternative.</p>