I just posted another CodeProject article, Convert any URL to a MHTML archive using native .NET code. The title is a bit misleading; using my class, you can actually convert any URL to one of four formats in a single line of code:
- Web Page, complete (HTML plus files in subfolder)
- Web Archive, single file (MHTML only)
- Web Page, HTML only (HTML only)
- Text File (TXT only)
I knew IE had some crazy way of saving a complete web page as a single file, but I was as surprised as anyone else to find that IE's "Web Archive" save option is based on an actual internet standard: RFC standard 2557, compliant Multipart MIME Message (MHTML web archive). As I mentioned a few months ago, this should work in Firefox, too..