文字化けしまくりで。
苦労しました。
string charset = Request.Form["charset"];
if(charset == null)
{
charset="utf-8";
}
System.IO.StreamReader reader = new System.IO.StreamReader(Request.InputStream);
string postData = reader.ReadToEnd();
string title = string.Empty;
string blog_name = string.Empty;
string excerpt = string.Empty;
string url = string.Empty;
string[] parts;
parts = postData.Split('&');
System.Text.Encoding encode = System.Text.Encoding.GetEncoding(charset);
for(int i=0;i<parts.Length;i++)
{
string [] str;
str = parts[i].Split('=');
if( str.Length > 1 )
{
if( str[0] == "title" ) title = HttpUtility.UrlDecode(str[1],encode);
if( str[0] == "blog_name" ) blog_name = HttpUtility.UrlDecode(str[1],encode);
if( str[0] == "excerpt" ) excerpt = HttpUtility.UrlDecode(str[1],encode);
if( str[0] == "url" ) url = HttpUtility.UrlDecode(str[1],encode);
}
}