title: Android WebView HTML with cookies
body: <p>I am trying to pull HTML data out of a <code>WebView</code>.  I've seen this done a thousand times and I've even gotten it to work myself.  However, my new project leads to an interesting situation: I need to login to a site through a <code>WebView</code> and <em>then</em> pull the HTML.  Obviously, the <code>Socket</code> method doesn't work, because in order for a webpage to be returned you need the cookie for authentication.  I've also tried the <code>JavascriptInterface</code> trick, but that didn't work either.  I'm thinking the best way to achieve this is to use <code>HttpGet</code> with <code>CookieManager</code>?  Does anyone know how I can get raw HTML code from a <code>WebView</code> with an auth cookie?  Thanks!</p>
  
  <p>EDIT: I did some JS injection and didn't see any cookies... so it might not be a cookie issue?  But the links that you get redirected to are generic, like <code>mainPage?a=1</code> and <code>infoPage</code>.  You cannot simply copy/paste the links into another browser you <em>have</em> to be logged in to view these links.  For those of you who are web experts, you may know an easy solution.</p>