1

私は次のコントローラーを持っています

public class MyController : ApiController
{
   [HttpPost]
   public string LoadData(string currentState)
   {

   }
}

ブラウザからのデータを。で投稿しjQuery.postます。状態の長さは29915文字である必要がありますが、currentState変数の文字数は21621文字のみです。文字列の終わりが失われます。ブラウザがすべてのデータをサーバーに送信するかどうかを確認しました。したがって、サーバーのどこかに問題があります。

4

1 に答える 1

0

ヘルプの設定ReadBufferSize

protected void Application_Start(object sender, EventArgs e)
{
   GlobalConfiguration.Configuration.Formatters.FormUrlEncodedFormatter.ReadBufferSize = 256 * 1024; // 256 KB
}
于 2012-04-23T10:46:04.323 に答える