Added aspx for proxying on IIS.
This commit is contained in:
parent
78b243371d
commit
bcb25468db
1 changed files with 16 additions and 0 deletions
16
web/up.aspx
Normal file
16
web/up.aspx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<%@ 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/" + 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();
|
||||
}
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue