c#代碼:
WebRequest mywebrq;
Web回應mywebresp;
StreamReader sr;
Streamwriter軟體;
Private void Page_Load(object sender,EventArgs e)
{
mywebreq=WebRequest.Create( http://localhost/Test.aspx );
mywebresp=mywebreq.GetResponse();
sr=新的streamReader(mywebresp.GetResponsestream());
strHtml=sr.ReadToEnd();
sw=File.CreateText(server.mappath("Test.htm"));
sw.writeling(strHtml);
sw.close();
Response.writeFile(Server.Mappath("Test.htm"));
}