0

I am sending string of json object of more than 1000 user profile records. And the server sends me this error:

 <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>

I am using the loopj (http://loopj.com/android-async-http/) lib.

Kate Gregory
  • 18,808
  • 8
  • 56
  • 85
naran zala
  • 141
  • 1
  • 6

1 Answers1

2

You can change the sever's setting to let it accept larger request. otherwise you have to split your request into small species.

Scott Zhu
  • 8,341
  • 6
  • 31
  • 38
  • I cant split request because if the request is successful then server send me some data which is depend upon request and i need to show that returned data on my UI so i can't do that. Please suggest me some another way. – naran zala Jun 14 '13 at 10:27
  • If i make this post request from iPhone then it works perfectly upto for 1500 user profile records. but in case of android the server sends me the above error only for 120 user profile records... Now ? what to do ??? – naran zala Jun 14 '13 at 10:35
  • on NGINX you open nginx.conf,and find http{} period,then set ' client_max_body_size 20m' and restart NGINX – Scott Zhu Jun 14 '13 at 10:41
  • have you logged the incoming request (on the SERVER) for both your iPhone and Android devices? sounds like there's a bit of cruft in your Android requests. – David M Jun 14 '13 at 10:44