Click here to Skip to main content
15,894,250 members
Articles / Programming Languages / C#

Harvesting Web Content into MHTML Archive

Rate me:
Please Sign up or sign in to vote.
4.69/5 (14 votes)
18 Feb 20068 min read 62K   729   49  
Capture and archive web resources by saving them in RFC-2557 (MHTML) compliant format. This library includes a framework for augmenting the capture process and allowing programmatic control, from downloading through saving. A replacement for CDOSYS/CDONTS.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<META NAME="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<script src="RefSamples/script01.js" />
		<script src='RefSamples/script02.js' />
		<script src="RefSamples/script03.js" />
		<script id="aaa" src="RefSamples/script04.js" />
		<script id="bbb" src='RefSamples/script05.js' />
		<script id="ccc" src="RefSamples/script06.js" />
		<script src="RefSamples/script07.js" id="ddd" />
		<script src='RefSamples/script08.js' id="eee" />
		<script src="RefSamples/script09.js" id="fff" />
		<script id="ggg" src="RefSamples/script10.js" runat="server" />
		<script id="hhh" src='RefSamples/script11.js' runat="server" />
		<script id="iii" src="RefSamples/script12.js" runat="server" />
		<script src="RefSamples/script01.vbs" />
		<script src='RefSamples/script02.vbs' />
		<script src="RefSamples/script03.vbs" />
		<script id="aaa" src="RefSamples/script04.vbs" />
		<script id="bbb" src='RefSamples/script05.vbs' />
		<script id="ccc" src="RefSamples/script06.vbs" />
		<script src="RefSamples/script07.vbs" id="ddd" />
		<script src='RefSamples/script08.vbs' id="eee" />
		<script src="RefSamples/script09.vbs" id="fff" />
		<script id="ggg" src="RefSamples/script10.vbs" runat="server" />
		<script id="hhh" src='RefSamples/script11.vbs' runat="server" />
		<script id="iii" src="RefSamples/script12.vbs" runat="server" />
		<TITLE></TITLE>
		<STYLE>
			@import url("RefSamples/css01.css");
			@import url('RefSamples/css02.css');
			@import url(RefSamples/css03.css);
			@import "RefSamples/css04.css";
			@import 'RefSamples/css05.css';
			@import RefSamples/css06.css;

			BODY {  background-image: url(RefSamples/img16.jpg); list-style-image: url(RefSamples/img18.jpg) }
			P  {  font: 10pt Arial; text-indent: 0.5in;  }
			UL { list-style-image:url(RefSamples/img17.jpg) }
			A  {  text-decoration: none; color: blue;  }
			
		</STYLE>
		<LINK type="text/css" REL="stylesheet" HREF="RefSamples/css07.css" />
		<LINK HREF='RefSamples/css08.css' type="text/css" REL="stylesheet" />
	</HEAD>
	<BODY>
		<frame src="RefSamples/frame01.html" />
		<frame src='RefSamples/frame02.html' />
		<frame src="RefSamples/frame03.html" />
		<frame frameborder="0" src="RefSamples/frame04.html" />
		<frame frameborder="0" src='RefSamples/frame05.html' />
		<frame frameborder="0" src="RefSamples/frame06.html" />
		<frame src="RefSamples/frame07.html" frameborder="0" />
		<frame src='RefSamples/frame08.html' frameborder="0" />
		<frame src="RefSamples/frame09.html" frameborder="0" />
		<frame frameborder="0" src="RefSamples/frame10.html" scrolling="yes" />
		<frame frameborder="0" src='RefSamples/frame11.html' scrolling="yes" />
		<frame frameborder="0" src="RefSamples/frame12.html" scrolling="yes" />
		<iframe src="RefSamples/frame13.html" />
		<iframe src='RefSamples/frame14.html' />
		<iframe src="RefSamples/frame15.html" />
		<iframe frameborder="0" src="RefSamples/frame16.html" />
		<iframe frameborder="0" src='RefSamples/frame17.html' />
		<iframe frameborder="0" src="RefSamples/frame18.html" />
		<iframe src="RefSamples/frame19.html" frameborder="0" />
		<iframe src='RefSamples/frame20.html' frameborder="0" />
		<iframe src="RefSamples/frame21.html" frameborder="0" />
		<iframe frameborder="0" src="RefSamples/frame22.html" scrolling="yes" />
		<iframe frameborder="0" src='RefSamples/frame23.html' scrolling="yes" />
		<iframe frameborder="0" src="RefSamples/frame24.html" scrolling="yes" />
		<xml src="RefSamples/xml01.xml" />
		<xml src='RefSamples/xml02.xml' />
		<xml src="RefSamples/xml03.xml" />
		<xml id="fdsarfs" src="RefSamples/xml04.xml" />
		<xml id="fdsarfs" src='RefSamples/xml05.xml' />
		<xml id="fdsarfs" src="RefSamples/xml06.xml" />
		<xml src="RefSamples/xml07.xml" id="fdsarfs" />
		<xml src='RefSamples/xml08.xml' id="fdsarfs" />
		<xml src="RefSamples/xml09.xml" id="fdsarfs" />
		<xml id="fdsarfs" src="RefSamples/xml10.xml" id="fdsarfs" />
		<xml id="fdsarfs" src='RefSamples/xml11.xml' id="fdsarfs" />
		<xml id="fdsarfs" src="RefSamples/xml12.xml" id="fdsarfs" />
		<bgsound src="RefSamples/sound01.wav" />
		<bgsound src='RefSamples/sound02.wav' />
		<bgsound src="RefSamples/sound03.wav" />
		<bgsound volumn="0" src="RefSamples/sound04.wav" />
		<bgsound volumn="0" src='RefSamples/sound05.wav' />
		<bgsound volumn="0" src="RefSamples/sound06.wav" />
		<bgsound src="RefSamples/sound07.wav" volumn="0" />
		<bgsound src='RefSamples/sound08.wav' volumn="0" />
		<bgsound src="RefSamples/sound09.wav" volumn="0" />
		<bgsound volumn="0" src="RefSamples/sound10.wav" volumn="0" />
		<bgsound volumn="0" src='RefSamples/sound11.wav' volumn="0" />
		<bgsound volumn="0" src="RefSamples/sound12.wav" volumn="0" />
		<img src="RefSamples/img01.jpg" /> <img src='RefSamples/img02.jpg' /> <img src="RefSamples/img03.jpg" />
		<td style="width:15px; background-image:url(RefSamples/img04.jpg);">
		<td style="background-image:url('RefSamples/img05.jpg');width:15px; ">
		<td style='width:15px; background-image:url("RefSamples/img06.jpg");width:15px; '>
		<td x="aaa" background="RefSamples/img07.jpg" y="bbb">
		<td x="aaa" background='RefSamples/img08.jpg' y="bbb">
		<td x="aaa" background="RefSamples/img09.jpg">
			<input type="image" src="RefSamples/img10.jpg"> <input type="image" src='RefSamples/img11.jpg' ID="Image1" NAME="Image1">
			<input type="image" src="RefSamples/img12.jpg" ID="Image2" NAME="Image2">
			<ul style="list-style-image:url(RefSamples/img13.jpg)">
				<ul style="list-style-image:url('RefSamples/img14.jpg')">
					<ul style='list-style-image:url(RefSamples/img15.jpg)'>
	</BODY>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions