c#代码:
WebRequest mywebrq;
WebRespuesta mywebresp;
StreamReader Sr;
Streamwriter software;
Private void Page_Load(remitente del objeto,EventArgs e)
{
mywebreq=WebRequest.Create( http://localhost/Test.aspx );
mywebresp=mywebreq.GetResponse();
sr=nuevo streamReader(mywebresp.GetResponsestream());
strHtml=sr.ReadToEnd();
sw=File.CreateText(server.mappath("Prueba.htm"));
sw.writeling(strHtml);
sw.cerrar();
Response.writeFile(Server.Mappath("Test.htm"));
}