C# :页面Index.aspx 接收POST 数据
POST URL: http://..../Index (不用跟后缀aspx)
protected void Page_Load(object sender, EventArgs e)
{
Stream stream = Request.InputStream;
string json = string.Empty;
string responseJson = string.Empty;
if (stream.Length != 0)
{
StreamReader streamReader = new StreamReader(stream);
json = streamReader.ReadToEnd();
Response.Write(json);
}
}
Java:
![](https://i-blog.csdnimg.cn/blog_migrate/3226d6d95a267b974bcce57e6d693960.png)