请求实体过大,使用httppost。

我正在发送超过1000个用户配置文件记录的JSON对象字符串。服务器向我发送此错误:

<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>ngx_openresty/1.2.4.14</center>
</body>
</html>

我正在使用loopj(http://loopj.com/android-async-http/)库。

点赞
用户1213267
用户1213267

你可以更改服务器的设置以使其接受更大的请求。否则,您必须将请求拆分成小的部分。

2013-06-14 10:20:42