Beispiel #1
0
        public void ProcessRequest(HttpContext context)
        {
            // string Songname= System.Web.HttpContext.Current.Request.QueryString["SongName"];
            string Songname = context.Request["SongName"].ToString();
            string OffSet   = context.Request["OffSet"].ToString();

            Songname = context.Server.UrlEncode(Songname);

            string json = pg.HttpPost("http://music.163.com/api/search/pc", "s=" + Songname + "&limit=30&type=1&offset=" + OffSet);

            json = json.Replace("http://m", "http://p");
            context.Response.ContentType = "text/plain";
            context.Response.Write(json);
        }