title: Java HTML Unit save Unexpected page
body: <p>Am trying to access the servlet page using <code>htmlunit</code> which contains one image.<br>
  I need to save the image or need to save the servlet page into html page.  </p>
  
  <p>Now am using</p>
  
  <pre><code>(UnexpectedPage) webClient.getPage(new URL("https://www.xxxx.com/servlet/xxxSer")
  WebResponse response = currentPage.getWebResponse();
  response.getContentType();
  </code></pre>
  
  <p>After that I do not know what to do. Is there any  idea to do this job.</p>
  
  <p>Thanks in advance.</p>