2011-01-22 23:55:50 +01:00
|
|
|
<%@ Page Language="C#" %>
|
|
|
|
<script runat="server" language="C#">
|
|
|
|
public void Page_Load(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
string path = Request.Params["path"];
|
|
|
|
System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("http://localhost:8123/up/" + path);
|
|
|
|
System.Net.WebResponse response = request.GetResponse();
|
|
|
|
System.IO.Stream responseStream = response.GetResponseStream();
|
|
|
|
System.IO.StreamReader reader = new System.IO.StreamReader(responseStream);
|
|
|
|
Response.ContentType = response.ContentType;
|
|
|
|
Response.Write(reader.ReadToEnd());
|
|
|
|
reader.Close();
|
|
|
|
responseStream.Close();
|
|
|
|
response.Close();
|
|
|
|
}
|
2011-01-20 20:48:00 +01:00
|
|
|
</script>
|