I have a REST interface for uploading some data stored on my local Android phone to the server over a REST interface. The data is in JSON. It works fine if I have small number of records to upload. But when the number of record reaches big numbers, for example 200. And each record is about 50 characters on average, I am getting failures. I think it is due to the size of the JSON string being too big. Any suggestion how should I do in this case? My server side is a simple PHP that gets the JSON string and parse it and store it in mysql.
Share
Thanks for all the suggestions and questions. After some debugging, it was actually due to timeout. So it is working now after I changed timeout value. Just want to have an answer to this question for anyone who might have similar problem.