asp.netにashx(httpハンドラ)でPOSTした値を受け取る方法

参考コード:
if (context.Request.InputStream != null)
{
byte[] postData = new byte[context.Request.InputStream.Length];
context.Request.InputStream.Read(postData, 0, postData.Length);
string postDataString = System.Text.Encoding.UTF8.GetString(postData);
context.Response.Write(postDataString);
}

Comments are closed.