title: Downloading HTTPS resources of a webpage for Google Chrome extension
body: <p>I'm writing an extension for Google Chrome that converts a given page to PDF. To achieve this functionality, I download the HTML of the page and pass it to an NPAPI DLL, through JavaScript, where the conversion happens and the PDF file is created.</p>
  
  <p>I've implemented this functionality for pages of type <code>http://*</code>, but it doesn't work for pages of type <code>https://*</code>. I need to download the HTTPS resources (CSS, images, etc.) of that webpage and modify the HTML before passing it to the NPAPI DLL.</p>
  
  <p>I couldn't find any good links that explain how it could be done for Chrome. Please give me some suggestions.</p>