CharlesBlonde / libpurecoollink

Dyson Pure Cool link python library
http://libpurecoollink.readthedocs.io
Other
206 stars 53 forks source link

In ASP.NET Web API, I am getting this Message no http resource was found that matches the request uri #39

Open Sekharuggina opened 3 years ago

Sekharuggina commented 3 years ago

In controller I am trying to return HTTP request string, Can some one help on this?

public class TestController : ApiController { public string Get() { //var sr = new StreamReader(HttpContext.Current.Request.InputStream).ReadToEnd(); //new System.IO.StreamReader(Request.Body).ReadToEnd() //String Sd = sr; //return Sd; var httpContext = (HttpContextWrapper)Request.Properties["MS_HttpContext"]; var foo = httpContext.Request.Form["jsonRequest"]; return foo; //This is value passed in request } }