Skip to content

Instantly share code, notes, and snippets.

@rposbo
Created September 5, 2011 10:03
Show Gist options
  • Save rposbo/1194612 to your computer and use it in GitHub Desktop.
Save rposbo/1194612 to your computer and use it in GitHub Desktop.
the most basic local proxy evah
<%@ 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