c#代码:
WebRequest mywebrq;
WebRespon mywebresp;
StreamReader sr;
Penulis aliran sw;
Private void Page_Load(pengirim objek,EventArgs e)
{
mywebreq=WebRequest.Create( http://localhost/Test.aspx );
mywebresp=mywebreq.GetResponse();
sr=pembaca aliran baru(mywebresp.GetResponsestream());
strHtml=sr.ReadToEnd();
sw=File.CreateText(server.mappath("Test.htm"));
sw.writeling(strHtml);
sw.close();
Response.writeFile(Server.Mappath("Test.htm"));
}