Thursday, 18 July 2019

.Net: Get data from Request body

private void test()
        {
            Stream req = HttpContext.Current.Request.InputStream;
            req.Seek(0, System.IO.SeekOrigin.Begin);
            string json = new StreamReader(req).ReadToEnd();
        }

No comments:

Post a Comment