ASP.NET WEBFORM
string logtxt = "进入回调页面:\r\n";
logtxt += $"ContentType:{Request.ContentType}\r\n";
Stream s = Request.InputStream;
StreamReader reader = new StreamReader(s);
string text = reader.ReadToEnd();
logtxt += $"InputStream:\r\n{text}\r\n";
if (Request.Form != null && Request.Form.Count > 0)
{
logtxt += "传有form参数,数量:" + Request.Form.Count + "\r\n";
}
else
{
logtxt += $"没有form参数。\r\n";
}
if (Request.QueryString != null)
{
logtxt += $"QueryString:{Request.QueryString}\r\n";
}
C#