Created
September 5, 2011 10:03
-
-
Save rposbo/1194612 to your computer and use it in GitHub Desktop.
the most basic local proxy evah
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ WebService Language="C#" Class="Proxy" %> | |
using System; | |
using System.Collections; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Diagnostics; | |
using System.Web; | |
using System.Web.Services; | |
[WebService(Namespace = "http://tempuri.org/")] | |
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] | |
[System.Web.Script.Services.ScriptService] | |
public class Proxy: System.Web.Services.WebService | |
{ | |
[WebMethod] | |
public string getMeTheDataFrom(string here) | |
{ | |
using (var response = new System.Net.WebClient()) | |
{ | |
return response.DownloadString(here); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment