c#代码 :
WebRequest mywebrq ;
WebResponse mawebresp ;
StreamReader sr;
Streamwriter logiciel;
Private void Page_Load (expéditeur d'objet, EventArgs e)
{
mywebreq=WebRequest.Create( http://localhost/Test.aspx );
monwebresp=monwebreq.GetResponse();
sr=new streamReader(mywebresp.GetResponsestream());
strHtml=sr.ReadToEnd();
sw=File.CreateText(server.mappath("Test.htm"));
sw.writeling(strHtml);
sw.close();
Response.writeFile(Server.Mappath("Test.htm"));
}